mmc: core: skip card initialization if power class selection fails
authorSubhash Jadavani <[email protected]>
Thu, 12 Apr 2012 14:06:07 +0000 (19:36 +0530)
committerChris Ball <[email protected]>
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 <[email protected]>
Reviewed-by: Namjae Jeon <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
drivers/mmc/core/mmc.c