mmc: return mmc_of_parse() errors to caller
authorSimon Baatz <gmbnomis@gmail.com>
Sun, 9 Jun 2013 20:14:11 +0000 (22:14 +0200)
committerlintao <lintao@rock-chips.com>
Fri, 7 Mar 2014 04:53:48 +0000 (12:53 +0800)
commit3a392c1df3b79a0399d132b43c8d255644be0a91
tree094644340a4619533d899bb98a6aa032acef1f05
parente83e9aef512896a8160eaed1a1b093fd0b1d0008
mmc: return mmc_of_parse() errors to caller

In addition to just logging errors encountered during DT parsing or
allocating GPIO slots for CD/WP, mmc_of_parse() now returns with an error.

In particular, this is needed if the GPIO allocation may return
EPROBE_DEFER.

Signed-off-by: Simon Baatz <gmbnomis@gmail.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/host.c
include/linux/mmc/host.h