cfi_flash: fix NULL pointer dereference
We need to setup the info->dev pointer before flash_get_size() since it
might use it for dev_dbg().
This fix a crash on boot when debug output is enabled.

Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8383a65 commit fb7836ebf638de5ca1a6e0955ebf66e50fd5bd17
@Philippe Rétornaz Philippe Rétornaz authored on 25 Feb 2014
Sascha Hauer committed on 28 Feb 2014
Showing 1 changed file
View
drivers/mtd/nor/cfi_flash.c