diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-04-09 16:03:52 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-04-28 11:45:09 +0200 |
commit | 1a8800458bd12febff981fadc86b2cdf0abaf827 (patch) | |
tree | 964f019eefa5349b414b3ec0d7307637ffc9e586 /include/linux | |
parent | 33d4f7cb3da852420693e2a4f3782fb9a09a3861 (diff) | |
download | barebox-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 'include/linux')
-rw-r--r-- | include/linux/mtd/mtd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index c63b514f44..5f02aee2d6 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -211,6 +211,8 @@ struct mtd_info { struct device_d *parent; struct cdev cdev; + struct cdev *cdev_bb; + struct param_d param_size; char *size_str; |