|
@@ -1297,7 +1297,6 @@ static int rtsx_pci_sdmmc_drv_remove(struct platform_device *pdev)
|
|
pcr->slots[RTSX_SD_CARD].p_dev = NULL;
|
|
pcr->slots[RTSX_SD_CARD].p_dev = NULL;
|
|
pcr->slots[RTSX_SD_CARD].card_event = NULL;
|
|
pcr->slots[RTSX_SD_CARD].card_event = NULL;
|
|
mmc = host->mmc;
|
|
mmc = host->mmc;
|
|
- host->eject = true;
|
|
|
|
|
|
|
|
mutex_lock(&host->host_mutex);
|
|
mutex_lock(&host->host_mutex);
|
|
if (host->mrq) {
|
|
if (host->mrq) {
|
|
@@ -1315,6 +1314,8 @@ static int rtsx_pci_sdmmc_drv_remove(struct platform_device *pdev)
|
|
mutex_unlock(&host->host_mutex);
|
|
mutex_unlock(&host->host_mutex);
|
|
|
|
|
|
mmc_remove_host(mmc);
|
|
mmc_remove_host(mmc);
|
|
|
|
+ host->eject = true;
|
|
|
|
+
|
|
mmc_free_host(mmc);
|
|
mmc_free_host(mmc);
|
|
|
|
|
|
dev_dbg(&(pdev->dev),
|
|
dev_dbg(&(pdev->dev),
|