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

Peter Korsgaard jacmet at sunsite.dk
Mon Mar 4 02:47:47 EST 2013


>>>>> "Daniel" == Daniel Mack <zonque at gmail.com> writes:

 Daniel> In case the driver is not probed - due to config mismatches or errors
 Daniel> in the DTS files - dev_get_drvdata() returns NULL, leading to an Ooops
 Daniel> during boot.

 Daniel> Make elm_config() return an error in such cases to propagate the error
 Daniel> up to the user, so it can fall back to software mode.

 Daniel> Signed-off-by: Daniel Mack <zonque at gmail.com>
 Daniel> Cc: Philip Avinash <avinashphilip at ti.com>
 Daniel> Cc: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
 Daniel> Cc: Peter Korsgaard <jacmet at sunsite.dk>

Acked-by: Peter Korsgaard <jacmet at sunsite.dk>

-- 
Bye, Peter Korsgaard



More information about the linux-mtd mailing list