diff mbox

mmc: core: Allow sdio operations in other thread during =?utf-8?b?c2Rpb19hZGRfZnVuYygp?=

Message ID loom.20110212T012443-915@post.gmane.org (mailing list archive)
State New, archived
Headers show

Commit Message

Dmitry Shmidt Feb. 12, 2011, 12:25 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index dec4290..d4e6e6ef 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -834,7 +834,6 @@  int mmc_attach_sdio(struct mmc_host *host)
         */
        mmc_release_host(host);
        err = mmc_add_card(host->card);
-       mmc_claim_host(host);
        if (err)
                goto remove_added;

@@ -846,13 +845,12 @@  int mmc_attach_sdio(struct mmc_host *host)
                if (err)
                        goto remove_added;
        }
-
+       mmc_claim_host(host);
        return 0;


 remove_added:
        /* Remove without lock if the device has been added. */
-       mmc_release_host(host);
        mmc_sdio_remove(host);
        mmc_claim_host(host);
 remove: