From: Richard Genoud Date: Tue, 10 Jul 2012 16:23:40 +0000 (+0200) Subject: mtd: mtdparts: introduce mtd_get_device_size X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~33^2~15 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62082e56cbb807cb325a8968f35dbd922432eb48;p=pandora-kernel.git mtd: mtdparts: introduce mtd_get_device_size 'mtd_get_device_size()' returns the size of the whole MTD device, that is the mtd_info master size. This will be used by UBI to calculate the maximum number of bad blocks (MBB) on a MTD device. Artem: amended the patch a bit. Signed-off-by: Richard Genoud Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed