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

Daniel Mack zonque at gmail.com
Tue Mar 5 05:24:16 EST 2013


On 04.03.2013 08:47, Peter Korsgaard wrote:
>>>>>> "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>

Philip, are you also ok with this?


Thanks,
Daniel




More information about the linux-mtd mailing list