diff options
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index fc7cb489bdb7..c814220d214e 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -1149,6 +1149,8 @@ static int sdhci_get_ro(struct mmc_host *mmc) | |||
1149 | 1149 | ||
1150 | spin_unlock_irqrestore(&host->lock, flags); | 1150 | spin_unlock_irqrestore(&host->lock, flags); |
1151 | 1151 | ||
1152 | if (host->quirks & SDHCI_QUIRK_INVERTED_WRITE_PROTECT) | ||
1153 | return !!(present & SDHCI_WRITE_PROTECT); | ||
1152 | return !(present & SDHCI_WRITE_PROTECT); | 1154 | return !(present & SDHCI_WRITE_PROTECT); |
1153 | } | 1155 | } |
1154 | 1156 | ||