Whenever a MTD partition is set, this change limits its size according to the flash size, avoiding the MTD partition to be greater than the actual flash size.