[MTD] partitioning utility predicates
Move mtd_has_partitions() and mtd_has_cmdlinepart() inlines from a DaVinci-specific driver to the <linux/mtd/partitions.h> header. Use those to eliminate #ifdefs in two drivers which had their own definitions of mtd_has_partitions(). Quite a lot of other MTD drivers could benefit from using use one or both of these to remove #ifdeffery. Maybe some Janitors would like to help. Signed-off-by:David Brownell <dbrownell@users.sourceforge.net> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
David Woodhouse <David.Woodhouse@intel.com>
Showing
- drivers/mtd/devices/m25p80.c 6 additions, 11 deletionsdrivers/mtd/devices/m25p80.c
- drivers/mtd/devices/mtd_dataflash.c 6 additions, 10 deletionsdrivers/mtd/devices/mtd_dataflash.c
- drivers/mtd/nand/davinci_nand.c 0 additions, 13 deletionsdrivers/mtd/nand/davinci_nand.c
- include/linux/mtd/partitions.h 12 additions, 0 deletionsinclude/linux/mtd/partitions.h
Loading
Please register or sign in to comment