diff options
| -rw-r--r-- | drivers/mmc/host/sdhci-omap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index b1a66ca3821a..5bbed477c9b1 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c | |||
| @@ -1056,6 +1056,9 @@ static int sdhci_omap_probe(struct platform_device *pdev) | |||
| 1056 | mmc->f_max = 48000000; | 1056 | mmc->f_max = 48000000; |
| 1057 | } | 1057 | } |
| 1058 | 1058 | ||
| 1059 | if (!mmc_can_gpio_ro(mmc)) | ||
| 1060 | mmc->caps2 |= MMC_CAP2_NO_WRITE_PROTECT; | ||
| 1061 | |||
| 1059 | pltfm_host->clk = devm_clk_get(dev, "fck"); | 1062 | pltfm_host->clk = devm_clk_get(dev, "fck"); |
| 1060 | if (IS_ERR(pltfm_host->clk)) { | 1063 | if (IS_ERR(pltfm_host->clk)) { |
| 1061 | ret = PTR_ERR(pltfm_host->clk); | 1064 | ret = PTR_ERR(pltfm_host->clk); |
