[PATCH 2/4] MTD parts: introduce mtd_get_device_size()

2012-07-10 Thread Richard Genoud
mtd_get_device_size() returns the size of the whole MTD device, that is the mtd_info master size. This is used by UBI to calculate the maximum number of bad blocks (MBB) on a MTD device. Signed-off-by: Richard Genoud --- drivers/mtd/mtdpart.c | 14 ++

[PATCH 2/4] MTD parts: introduce mtd_get_device_size()

2012-07-10 Thread Richard Genoud
mtd_get_device_size() returns the size of the whole MTD device, that is the mtd_info master size. This is used by UBI to calculate the maximum number of bad blocks (MBB) on a MTD device. Signed-off-by: Richard Genoud richard.gen...@gmail.com --- drivers/mtd/mtdpart.c | 14