mtd: ubi: get_bad_peb_limit from mtd master
Like mentioned in the coment we need the size of the entire flash chip.
Check if a master exists and take his size.

Otherwise the limit will be too small and kernel prints:
UBI warning: print_rsvd_warning: cannot reserve enough PEBs for \
bad PEB handling, reserved 19, need 20

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 16018ed commit c267e2dd730f930e568d14babbb632880166e0bb
@Jan Weitzel Jan Weitzel authored on 19 Nov 2014
Sascha Hauer committed on 20 Nov 2014
Showing 1 changed file
View
drivers/mtd/ubi/build.c