summaryrefslogtreecommitdiff
path: root/drivers/mmc/host/sdhci-dove.c
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2012-07-10 23:40:56 (GMT)
committerChris Ball <cjb@laptop.org>2012-07-22 20:42:47 (GMT)
commit9c17d08ca183b92c9cfab6537069914a5e0e7e81 (patch)
treeda0aee25b520a6900fbcc3fd6fff2287c08adeef /drivers/mmc/host/sdhci-dove.c
parentb6e76f10afbdc510df9288ab4df3e94a89c20909 (diff)
downloadlinux-fsl-qoriq-9c17d08ca183b92c9cfab6537069914a5e0e7e81.tar.xz
mmc: omap_hsmmc: ensure probe returns error upon resource failure
If platform_get_resource_by_name() fails, driver probe is aborted an should return an error so the driver is not bound to the device. However, in the current error path of platform_get_resource_by_name(), probe returns zero since the return value (ret) is not properly set. With a zero return value, the driver core assumes probe was successful and will bind the driver to the device. Fix this by ensuring that probe returns an error code in this failure path. Signed-off-by: Kevin Hilman <khilman@ti.com> Acked-by: Venkatraman S <svenkatr@ti.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-dove.c')
0 files changed, 0 insertions, 0 deletions