]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7b13a696eeb0afac5dd3f3ee1df862cfb827ec2
tree9806da64e145f74749d2e639cd00878a1289ca96
parentf02f2118d1c0b4df772a890b8ad9a4e9a040bb86
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