[RFC PATCH 0/7] Removing CONFIG_MTD_PARTITIONS

Jamie Iles jamie at jamieiles.com
Thu May 12 09:26:51 EDT 2011


This patch series is an RFC for the removal of CONFIG_MTD_PARTITIONS.
Partitioning is still supported, but is always compiled in if CONFIG_MTD is
selected.  To transition, two new symbols are introduced -
mtd_device_{,un}register() that replace add_mtd_device(), add_mtd_partitions()
and their counterparts.  The series converts a number of drivers over to use
these new interfaces and the final patch removes the old symbols.

Note that this patch does not transition all of the drivers so is incomplete
(and not signed off!).  If this approach is suitable then I'll convert all of
the other drivers over.

Jamie Iles (7):
  mtd: always build partitioning support
  mtd: introduce mtd_device_(un)register()
  mtd/physmap: convert to mtd_device_register()
  mtd/nand: convert to mtd_device_unregister()
  nand/gpio: convert to mtd_device_register()
  mtd/plat_nand: convert to mtd_device_register()
  mtd: remove add_mtd_partitions, add_mtd_device and friends

 drivers/mtd/Kconfig            |   18 +-----------------
 drivers/mtd/Makefile           |    3 +--
 drivers/mtd/maps/physmap.c     |   31 +++++--------------------------
 drivers/mtd/mtdcore.c          |   30 +++++++++++++++++++++++++++---
 drivers/mtd/mtdcore.h          |    6 ++++++
 drivers/mtd/mtdpart.c          |    4 ++--
 drivers/mtd/nand/gpio.c        |    5 ++---
 drivers/mtd/nand/nand_base.c   |    7 +------
 drivers/mtd/nand/plat_nand.c   |   14 +++-----------
 include/linux/mtd/mtd.h        |   15 +++++----------
 include/linux/mtd/partitions.h |   11 +----------
 include/linux/mtd/physmap.h    |    4 ----
 12 files changed, 54 insertions(+), 94 deletions(-)

-- 
1.7.4.4




More information about the linux-mtd mailing list