diff options
Diffstat (limited to 'drivers/mmc/host/rtsx_pci_sdmmc.c')
-rw-r--r-- | drivers/mmc/host/rtsx_pci_sdmmc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c index c46feda07d56..cc80e3119d1d 100644 --- a/drivers/mmc/host/rtsx_pci_sdmmc.c +++ b/drivers/mmc/host/rtsx_pci_sdmmc.c | |||
@@ -1297,7 +1297,6 @@ static int rtsx_pci_sdmmc_drv_remove(struct platform_device *pdev) | |||
1297 | pcr->slots[RTSX_SD_CARD].p_dev = NULL; | 1297 | pcr->slots[RTSX_SD_CARD].p_dev = NULL; |
1298 | pcr->slots[RTSX_SD_CARD].card_event = NULL; | 1298 | pcr->slots[RTSX_SD_CARD].card_event = NULL; |
1299 | mmc = host->mmc; | 1299 | mmc = host->mmc; |
1300 | host->eject = true; | ||
1301 | 1300 | ||
1302 | mutex_lock(&host->host_mutex); | 1301 | mutex_lock(&host->host_mutex); |
1303 | if (host->mrq) { | 1302 | if (host->mrq) { |
@@ -1315,6 +1314,8 @@ static int rtsx_pci_sdmmc_drv_remove(struct platform_device *pdev) | |||
1315 | mutex_unlock(&host->host_mutex); | 1314 | mutex_unlock(&host->host_mutex); |
1316 | 1315 | ||
1317 | mmc_remove_host(mmc); | 1316 | mmc_remove_host(mmc); |
1317 | host->eject = true; | ||
1318 | |||
1318 | mmc_free_host(mmc); | 1319 | mmc_free_host(mmc); |
1319 | 1320 | ||
1320 | dev_dbg(&(pdev->dev), | 1321 | dev_dbg(&(pdev->dev), |