Skip to content

Commit

Permalink
ARM: OMAP2+: Remove legacy gpmc-nand.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3x380V authored and tmlind committed Feb 28, 2017
1 parent 7807e08 commit ac28e47
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 168 deletions.
3 changes: 0 additions & 3 deletions arch/arm/mach-omap2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,3 @@ obj-$(CONFIG_MACH_OMAP2_TUSB6010) += usb-tusb6010.o

onenand-$(CONFIG_MTD_ONENAND_OMAP2) := gpmc-onenand.o
obj-y += $(onenand-m) $(onenand-y)

nand-$(CONFIG_MTD_NAND_OMAP2) := gpmc-nand.o
obj-y += $(nand-m) $(nand-y)
154 changes: 0 additions & 154 deletions arch/arm/mach-omap2/gpmc-nand.c

This file was deleted.

11 changes: 0 additions & 11 deletions include/linux/omap-gpmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,6 @@ struct gpmc_timings;
struct omap_nand_platform_data;
struct omap_onenand_platform_data;

#if IS_ENABLED(CONFIG_MTD_NAND_OMAP2)
extern int gpmc_nand_init(struct omap_nand_platform_data *d,
struct gpmc_timings *gpmc_t);
#else
static inline int gpmc_nand_init(struct omap_nand_platform_data *d,
struct gpmc_timings *gpmc_t)
{
return 0;
}
#endif

#if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2)
extern int gpmc_onenand_init(struct omap_onenand_platform_data *d);
#else
Expand Down

0 comments on commit ac28e47

Please sign in to comment.