Daniel Mack ad2457894c mtd: devices: elm: check for device's presence before configuration
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@gmail.com>
Acked-by: Peter Korsgaard <jacmet@sunsite.dk>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2013-04-05 12:57:18 +01:00
..
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-09-29 15:00:46 +01:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-15 15:37:46 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2013-04-05 12:00:50 +01:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-09-29 15:00:46 +01:00
2012-12-19 12:47:41 -08:00
2012-11-22 12:07:03 +02:00
2012-11-22 12:07:03 +02:00
2012-09-29 15:00:46 +01:00