mtd: lpc32xx_slc: Make probe() return -EPROBE_DEFER if necessary
authorRoland Stigge <stigge@antcom.de>
Wed, 27 Jun 2012 15:51:15 +0000 (17:51 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 6 Jul 2012 17:25:25 +0000 (18:25 +0100)
commitd5842ab730d368ae2e8925dc00aec0ca132b72ab
treea9bac242c78abd5306c3116f3aaa7e76b524a578
parent21535ab39a74b5ec074e2d10b132e866472e86f9
mtd: lpc32xx_slc: Make probe() return -EPROBE_DEFER if necessary

Via of_get_named_gpio(), wp_gpio can become -EPROBE_DEFER which now makes
probe() return -EPROBE_DEFER as well to wait until the gpio controller is
probed before trying to probe lpc32xx_slc again.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/lpc32xx_slc.c