summaryrefslogtreecommitdiffstats
path: root/drivers/of/partition.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-04-09 16:03:52 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-28 11:45:09 +0200
commit1a8800458bd12febff981fadc86b2cdf0abaf827 (patch)
tree964f019eefa5349b414b3ec0d7307637ffc9e586 /drivers/of/partition.c
parent33d4f7cb3da852420693e2a4f3782fb9a09a3861 (diff)
downloadbarebox-1a8800458bd12febff981fadc86b2cdf0abaf827.tar.gz
barebox-1a8800458bd12febff981fadc86b2cdf0abaf827.tar.xz
mtd: nand: create bb devices automatically
When a mtd device can have bad blocks we want to create a bb device, so do this automatically. This allows us to drop bb device creation from the environment. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/of/partition.c')
-rw-r--r--drivers/of/partition.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/of/partition.c b/drivers/of/partition.c
index 5ed44a84d2..074be090e6 100644
--- a/drivers/of/partition.c
+++ b/drivers/of/partition.c
@@ -61,9 +61,6 @@ struct cdev *of_parse_partition(struct cdev *cdev, struct device_node *node)
new = devfs_add_partition(cdev->name, offset, size, flags, filename);
- if (cdev->mtd && cdev->mtd->type == MTD_NANDFLASH)
- dev_add_bb_dev(filename, NULL);
-
free(filename);
return new;