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))
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 ||