xref: /linux/drivers/mtd/maps/physmap-ixp4xx.h (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/of.h>
3 #include <linux/platform_device.h>
4 #include <linux/mtd/map.h>
5 
6 #ifdef CONFIG_MTD_PHYSMAP_IXP4XX
7 int of_flash_probe_ixp4xx(struct platform_device *pdev,
8 			  struct device_node *np,
9 			  struct map_info *map);
10 #else
11 static inline
12 int of_flash_probe_ixp4xx(struct platform_device *pdev,
13 			  struct device_node *np,
14 			  struct map_info *map)
15 {
16 	return 0;
17 }
18 #endif
19