diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2015-11-05 14:46:53 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-11-09 07:04:03 -0500 |
commit | 26d49fe7195385f2f1e406feddb01c16b53e77b6 (patch) | |
tree | ebb342db489c484d3828cae6e8ca1f9ed95a437e | |
parent | ce5c2d2c256a4c8b523036537cd6be2d6af8f69d (diff) |
mmc: pxamci: fix read-only gpio detection polarity
The commit converting pxamci to slot-gpio API inverted the logic of the
read-only gpio. Fix it by inverting the logic again.
Fixes: fd546ee6a7dc ("mmc: pxamci: fix card detect with slot-gpio API")
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/pxamci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 8cadd74e8407..ce08896b9d69 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c | |||
@@ -805,7 +805,7 @@ static int pxamci_probe(struct platform_device *pdev) | |||
805 | goto out; | 805 | goto out; |
806 | } else { | 806 | } else { |
807 | mmc->caps |= host->pdata->gpio_card_ro_invert ? | 807 | mmc->caps |= host->pdata->gpio_card_ro_invert ? |
808 | MMC_CAP2_RO_ACTIVE_HIGH : 0; | 808 | 0 : MMC_CAP2_RO_ACTIVE_HIGH; |
809 | } | 809 | } |
810 | 810 | ||
811 | if (gpio_is_valid(gpio_cd)) | 811 | if (gpio_is_valid(gpio_cd)) |