From: Robert Jarzmik Date: Thu, 5 Nov 2015 19:46:53 +0000 (+0100) Subject: mmc: pxamci: fix read-only gpio detection polarity X-Git-Tag: v5.15~14675^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26d49fe7195385f2f1e406feddb01c16b53e77b6;p=platform%2Fkernel%2Flinux-starfive.git 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 Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 8cadd74..ce08896 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) goto out; } else { mmc->caps |= host->pdata->gpio_card_ro_invert ? - MMC_CAP2_RO_ACTIVE_HIGH : 0; + 0 : MMC_CAP2_RO_ACTIVE_HIGH; } if (gpio_is_valid(gpio_cd))