]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6444374173b5cadde32346ac641314259aba7128
tree43e730efdee8406e8105b43743523af41849cd01
parent61e4abf94f9f55cac25784914a6fbde35d36feb2
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