[PATCH v2] mtd: devices: elm: check for device's presence before configuration

Artem Bityutskiy artem.bityutskiy at linux.intel.com
Mon Mar 11 05:19:40 EDT 2013


On Mon, 2013-03-04 at 00:57 +0100, Daniel Mack wrote:
> In case the driver is not probed - due to config mismatches or errors
> in the DTS files - dev_get_drvdata() returns NULL, leading to an Ooops
> during boot.
> 
> Make elm_config() return an error in such cases to propagate the error
> up to the user, so it can fall back to software mode.
> 
> Signed-off-by: Daniel Mack <zonque at gmail.com>

Pushed to l2-mtd.git, thanks!

-- 
Best Regards,
Artem Bityutskiy




More information about the linux-mtd mailing list