diff options
Diffstat (limited to 'drivers/mmc/host/imxmmc.c')
-rw-r--r-- | drivers/mmc/host/imxmmc.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/mmc/host/imxmmc.c b/drivers/mmc/host/imxmmc.c index eed211b2ac70..5e880c0f1349 100644 --- a/drivers/mmc/host/imxmmc.c +++ b/drivers/mmc/host/imxmmc.c | |||
@@ -892,9 +892,12 @@ static int imxmci_get_ro(struct mmc_host *mmc) | |||
892 | struct imxmci_host *host = mmc_priv(mmc); | 892 | struct imxmci_host *host = mmc_priv(mmc); |
893 | 893 | ||
894 | if (host->pdata && host->pdata->get_ro) | 894 | if (host->pdata && host->pdata->get_ro) |
895 | return host->pdata->get_ro(mmc_dev(mmc)); | 895 | return !!host->pdata->get_ro(mmc_dev(mmc)); |
896 | /* Host doesn't support read only detection so assume writeable */ | 896 | /* |
897 | return 0; | 897 | * Board doesn't support read only detection; let the mmc core |
898 | * decide what to do. | ||
899 | */ | ||
900 | return -ENOSYS; | ||
898 | } | 901 | } |
899 | 902 | ||
900 | 903 | ||