|
@@ -936,25 +936,11 @@ static int tmio_mmc_get_ro(struct mmc_host *mmc)
|
|
|
(sd_ctrl_read32(host, CTL_STATUS) & TMIO_STAT_WRPROTECT));
|
|
|
}
|
|
|
|
|
|
-static int tmio_mmc_get_cd(struct mmc_host *mmc)
|
|
|
-{
|
|
|
- struct tmio_mmc_host *host = mmc_priv(mmc);
|
|
|
- struct tmio_mmc_data *pdata = host->pdata;
|
|
|
- int ret = mmc_gpio_get_cd(mmc);
|
|
|
- if (ret >= 0)
|
|
|
- return ret;
|
|
|
-
|
|
|
- if (!pdata->get_cd)
|
|
|
- return -ENOSYS;
|
|
|
- else
|
|
|
- return pdata->get_cd(host->pdev);
|
|
|
-}
|
|
|
-
|
|
|
static const struct mmc_host_ops tmio_mmc_ops = {
|
|
|
.request = tmio_mmc_request,
|
|
|
.set_ios = tmio_mmc_set_ios,
|
|
|
.get_ro = tmio_mmc_get_ro,
|
|
|
- .get_cd = tmio_mmc_get_cd,
|
|
|
+ .get_cd = mmc_gpio_get_cd,
|
|
|
.enable_sdio_irq = tmio_mmc_enable_sdio_irq,
|
|
|
};
|
|
|
|