@@ -713,7 +713,10 @@ static void mmc_detect(struct mmc_host *host)
/*
* Just check if our card has been removed.
*/
- err = mmc_send_status(host->card, NULL);
+ if (host->ops->get_cd)
+ err = !host->ops->get_cd(host);
+ else
+ err = mmc_send_status(host->card, NULL);
mmc_release_host(host);
@@ -673,7 +673,10 @@ static void mmc_sd_detect(struct mmc_host *host)
/*
* Just check if our card has been removed.
*/
- err = mmc_send_status(host->card, NULL);
+ if (host->ops->get_cd)
+ err = !host->ops->get_cd(host);
+ else
+ err = mmc_send_status(host->card, NULL);
mmc_release_host(host);