diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-10-19 10:49:05 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-11-06 00:24:29 +0300 |
commit | 6ca15cfa0788ebef365ce31d1e01ea30a389a895 (patch) | |
tree | fe6dbb27a233f1f56b2c54be0b0edfbff5d05304 /drivers/mtd/maps/physmap-versatile.h | |
parent | 642b1e8dbed7bbbf8c4deb3c9a0496f17278badc (diff) | |
download | linux-6ca15cfa0788ebef365ce31d1e01ea30a389a895.tar.xz |
mtd: maps: Rename physmap_of_{versatile, gemini} into physmap-{versatile, gemini}
Now that the physmap_of driver is gone, the gemini and versative
extensions are part of the physmap driver. Rename the source files and
the config option to reflect this.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/mtd/maps/physmap-versatile.h')
-rw-r--r-- | drivers/mtd/maps/physmap-versatile.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/drivers/mtd/maps/physmap-versatile.h b/drivers/mtd/maps/physmap-versatile.h new file mode 100644 index 000000000000..9cf39d031f5a --- /dev/null +++ b/drivers/mtd/maps/physmap-versatile.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#include <linux/of.h> +#include <linux/mtd/map.h> + +#ifdef CONFIG_MTD_PHYSMAP_VERSATILE +int of_flash_probe_versatile(struct platform_device *pdev, + struct device_node *np, + struct map_info *map); +#else +static inline +int of_flash_probe_versatile(struct platform_device *pdev, + struct device_node *np, + struct map_info *map) +{ + return 0; +} +#endif |