[PATCH 0/3] nand: Renaming, moving and fixing NAND and ELM drivers

Ezequiel Garcia ezequiel at vanguardiasur.com.ar
Thu Sep 11 06:47:01 PDT 2014


Following the recent discussion with Roger, here's a few patches that
(hopefully) fix all the issues.

The first patches rename the OMAP NAND drivers, so they are now called
omap2_nand and omap_elm.

The last patch picks an idea from Yann E. Morin and fixes the build issue
reported by Roger. Quoting Roger:

""
I still get the following error if I set CONFIG_MTD_NAND_OMAP2 to y and
CONFIG_MTD_NAND_OMAP_BCH to m.

CONFIG_MTD_NAND_OMAP_BCH is used to select the ELM driver and it must be limited to
be built-in if CONFIG_MTD_NAND_OMAP2 is built-in.

Maybe it should be a sub option of CONFIG_MTD_NAND_OMAP2.
IMHO the elm.c file must be moved from mtd/devices to mtd/nand and renamed to omap_elm.c

drivers/built-in.o: In function `omap_nand_probe':
/work/linux-2.6/drivers/mtd/nand/omap2.c:2010: undefined reference to `elm_config'
/work/linux-2.6/drivers/mtd/nand/omap2.c:1980: undefined reference to `elm_config'
/work/linux-2.6/drivers/mtd/nand/omap2.c:1927: undefined reference to `elm_config'
drivers/built-in.o: In function `omap_elm_correct_data':
/work/linux-2.6/drivers/mtd/nand/omap2.c:1444: undefined reference to `elm_decode_bch_error_page'
make: *** [vmlinux] Error 1
""

[1] https://lkml.org/lkml/2013/5/4/84

Ezequiel Garcia (3):
  mtd: nand: Move ELM driver and rename as omap_elm
  mtd: nand: Rename OMAP NAND driver
  mtd: nand: Force omap_elm to be built as a module if omap2_nand is a
    module

 drivers/mtd/devices/Makefile                   | 1 -
 drivers/mtd/nand/Kconfig                       | 8 +++++++-
 drivers/mtd/nand/Makefile                      | 3 ++-
 drivers/mtd/nand/{omap2.c => omap2_nand.c}     | 0
 drivers/mtd/{devices/elm.c => nand/omap_elm.c} | 0
 5 files changed, 9 insertions(+), 3 deletions(-)
 rename drivers/mtd/nand/{omap2.c => omap2_nand.c} (100%)
 rename drivers/mtd/{devices/elm.c => nand/omap_elm.c} (100%)

-- 
2.1.0




More information about the linux-mtd mailing list