fix conpile error
authorlintao <lintao@rock-chips.com>
Tue, 17 Mar 2015 06:23:19 +0000 (14:23 +0800)
committerlintao <lintao@rock-chips.com>
Tue, 17 Mar 2015 06:23:19 +0000 (14:23 +0800)
drivers/mmc/host/rk_sdmmc.c

index b4b2ee921c1e1c777cef6431fc7f7a3f22c16e4c..1276d727e6807981f1928017ded8cb3e3b3dd68a 100755 (executable)
@@ -4149,7 +4149,7 @@ EXPORT_SYMBOL(dw_mci_remove);
 extern int get_wifi_chip_type(void);
 int dw_mci_suspend(struct dw_mci *host)
 {
-       int present = dw_mci_get_cd(mmc);
+       int present = dw_mci_get_cd(host->mmc);
 
        if((host->mmc->restrict_caps & RESTRICT_CARD_TYPE_SDIO) &&
                (get_wifi_chip_type() == WIFI_ESP8089 || get_wifi_chip_type() > WIFI_AP6XXX_SERIES))
@@ -4187,7 +4187,7 @@ int dw_mci_resume(struct dw_mci *host)
        int i, ret;
        u32 regs;
        struct dw_mci_slot *slot;
-       int present = dw_mci_get_cd(mmc);
+       int present = dw_mci_get_cd(host->mmc);
 
        if ((host->mmc->restrict_caps & RESTRICT_CARD_TYPE_SDIO) &&
                (get_wifi_chip_type() == WIFI_ESP8089 ||