mmc: core: skip card initialization if power class selection fails
authorSubhash Jadavani <subhashj@codeaurora.org>
Thu, 12 Apr 2012 14:06:07 +0000 (19:36 +0530)
committerChris Ball <cjb@laptop.org>
Wed, 9 May 2012 14:07:12 +0000 (10:07 -0400)
commit3d93576e3442a2becb91290d62f1c105fec1150c
tree9806da64e145f74749d2e639cd00878a1289ca96
parent10942aa40a595d7ff8b4e90f8a762e816367cac3
mmc: core: skip card initialization if power class selection fails

With current implementation of power class selection,
mmc_select_powerclass() should never fail. So treat any error
returned by this function as serious enough to skip the card
initialization.

Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Reviewed-by: Namjae Jeon <linkinjeon@gmail.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/mmc.c