|
@@ -1061,10 +1061,9 @@ static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
|
|
|
static int tmio_mmc_get_ro(struct mmc_host *mmc)
|
|
|
{
|
|
|
struct tmio_mmc_host *host = mmc_priv(mmc);
|
|
|
- struct tmio_mmc_data *pdata = host->pdata;
|
|
|
|
|
|
- return !((pdata->flags & TMIO_MMC_WRPROTECT_DISABLE) ||
|
|
|
- (sd_ctrl_read16_and_16_as_32(host, CTL_STATUS) & TMIO_STAT_WRPROTECT));
|
|
|
+ return !(sd_ctrl_read16_and_16_as_32(host, CTL_STATUS) &
|
|
|
+ TMIO_STAT_WRPROTECT);
|
|
|
}
|
|
|
|
|
|
static int tmio_multi_io_quirk(struct mmc_card *card,
|