diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-13 09:08:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-13 09:19:46 +0200 |
commit | 9f8aab600d9e5fabd27412856bce3a91c5c0c899 (patch) | |
tree | b5b5398759c910b29cfd5419067464adf824089f /fs | |
parent | 37db9c61f70a2fae9cf2dd002d9056cc017074d9 (diff) | |
download | barebox-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 'fs')
-rw-r--r-- | fs/Kconfig | 3 | ||||
-rw-r--r-- | fs/devfs-core.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/fs/Kconfig b/fs/Kconfig index 50a15c6bee..3724b34f9a 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -63,7 +63,4 @@ config FS_UIMAGEFS bool prompt "uImage FS support" -config PARTITION_NEED_MTD - bool - endmenu diff --git a/fs/devfs-core.c b/fs/devfs-core.c index 455b21a1d9..f45f8cadf1 100644 --- a/fs/devfs-core.c +++ b/fs/devfs-core.c @@ -296,7 +296,7 @@ static struct cdev *__devfs_add_partition(struct cdev *cdev, return ERR_PTR(-EINVAL); } - if (IS_ENABLED(CONFIG_PARTITION_NEED_MTD) && cdev->mtd) { + if (IS_ENABLED(CONFIG_MTD) && cdev->mtd) { struct mtd_info *mtd; mtd = mtd_add_partition(cdev->mtd, offset, size, @@ -352,7 +352,7 @@ int devfs_del_partition(const char *name) if (!cdev) return -ENOENT; - if (IS_ENABLED(CONFIG_PARTITION_NEED_MTD) && cdev->mtd) { + if (IS_ENABLED(CONFIG_MTD) && cdev->mtd) { ret = mtd_del_partition(cdev->mtd); return ret; } |