From: Daniel Mack Date: Sun, 3 Mar 2013 23:57:20 +0000 (+0100) Subject: mtd: devices: elm: check for device's presence before configuration X-Git-Tag: v3.10-rc1~36^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad2457894c272279bf73ca46ae5ea5de4876d2a0;p=pandora-kernel.git 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 Acked-by: Peter Korsgaard Signed-off-by: Artem Bityutskiy Signed-off-by: David Woodhouse --- Reading git-diff-tree failed