Skip to content

Commit ac28e47

Browse files
3x380Vtmlind
authored andcommitted
ARM: OMAP2+: Remove legacy gpmc-nand.c
This code is no longer used and can be removed as we are using device tree. Removing this code also removes a dependency between drivers/mtd and arch/arm/mach-omap2 making furhter driver changes easier. Signed-off-by: Ladislav Michl <ladis@linux-mips.org> [tony@atomide.com: removed from header too, updated comments] Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 7807e08 commit ac28e47

File tree

3 files changed

+0
-168
lines changed

3 files changed

+0
-168
lines changed

arch/arm/mach-omap2/Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,3 @@ obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o
241241

242242
onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o
243243
obj-y += $(onenand-m) $(onenand-y)
244-
245-
nand-$(CONFIG_MTD_NAND_OMAP2) := gpmc-nand.o
246-
obj-y += $(nand-m) $(nand-y)

arch/arm/mach-omap2/gpmc-nand.c

Lines changed: 0 additions & 154 deletions
This file was deleted.

include/linux/omap-gpmc.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,17 +76,6 @@ struct gpmc_timings;
7676
struct omap_nand_platform_data;
7777
struct omap_onenand_platform_data;
7878

79-
#if IS_ENABLED(CONFIG_MTD_NAND_OMAP2)
80-
extern int gpmc_nand_init(struct omap_nand_platform_data *d,
81-
struct gpmc_timings *gpmc_t);
82-
#else
83-
static inline int gpmc_nand_init(struct omap_nand_platform_data *d,
84-
struct gpmc_timings *gpmc_t)
85-
{
86-
return 0;
87-
}
88-
#endif
89-
9079
#if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2)
9180
extern int gpmc_onenand_init(struct omap_onenand_platform_data *d);
9281
#else

0 commit comments

Comments
 (0)