mmc: skip reclaiming host on mmc_add_card() error
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 14 Oct 2015 20:53:03 +0000 (23:53 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Oct 2015 15:00:14 +0000 (16:00 +0100)
commit2860d060ac902df0164cc9580f843b101e27a2c6
tree43e730efdee8406e8105b43743523af41849cd01
parent7f8a9a7e98f99e9cd874eaf6ca2f00438c2a7c38
mmc: skip reclaiming host on mmc_add_card() error

There's little sense in releasing the host on mmc_add_card() error
immediately after reclaiming  it, so reclaim the host  only in case
of success.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c
drivers/mmc/core/sd.c