summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-13 09:08:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-13 09:19:46 +0200
commit9f8aab600d9e5fabd27412856bce3a91c5c0c899 (patch)
treeb5b5398759c910b29cfd5419067464adf824089f /drivers
parent37db9c61f70a2fae9cf2dd002d9056cc017074d9 (diff)
downloadbarebox-9f8aab600d9e5fabd27412856bce3a91c5c0c899.tar.gz
barebox-9f8aab600d9e5fabd27412856bce3a91c5c0c899.tar.xz
drop CONFIG_PARTITION_NEED_MTD
With CONFIG_PARTITION_NEED_MTD enabled we use mtd rather than devfs directly to create partitions on mtd devices. Since: | commit b32cd8df87b87ef744365138e145b829c02eb719 | Author: Sascha Hauer <s.hauer@pengutronix.de> | Date: Wed Apr 9 15:49:32 2014 +0200 | | mtd: nand: bb: use mtd api directly | | The devfs layer just adds an addition indirection between mtd | and the bb devices with no purpose. Drop it. | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> The bad block aware device creation doesn't work if this option is disabled. With this we remove CONFIG_PARTITION_NEED_MTD and always use mtd partitions on mtd devices. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mtd/Makefile3
-rw-r--r--drivers/mtd/ubi/Kconfig1
2 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile
index d8312642c5..9c7725742e 100644
--- a/drivers/mtd/Makefile
+++ b/drivers/mtd/Makefile
@@ -2,7 +2,6 @@ obj-$(CONFIG_NAND) += nand/
obj-$(CONFIG_DRIVER_CFI) += nor/
obj-$(CONFIG_MTD_UBI) += ubi/
obj-y += devices/
-obj-$(CONFIG_PARTITION_NEED_MTD) += partition.o
-obj-$(CONFIG_MTD) += core.o
+obj-$(CONFIG_MTD) += core.o partition.o
obj-$(CONFIG_MTD_OOB_DEVICE) += mtdoob.o
obj-$(CONFIG_MTD_RAW_DEVICE) += mtdraw.o
diff --git a/drivers/mtd/ubi/Kconfig b/drivers/mtd/ubi/Kconfig
index 926d31c77f..ccd547dd71 100644
--- a/drivers/mtd/ubi/Kconfig
+++ b/drivers/mtd/ubi/Kconfig
@@ -1,7 +1,6 @@
menuconfig MTD_UBI
tristate "Enable UBI - Unsorted block images"
select CRC32
- select PARTITION_NEED_MTD
help
UBI is a software layer above MTD layer which admits of LVM-like
logical volumes on top of MTD devices, hides some complexities of