Skip to content

Commit

Permalink
mmc: pxamci: fix read-only gpio detection polarity
Browse files Browse the repository at this point in the history
The commit converting pxamci to slot-gpio API inverted the logic of the
read-only gpio. Fix it by inverting the logic again.

Fixes: fd546ee ("mmc: pxamci: fix card detect with slot-gpio API")
Signed-off-by: Robert Jarzmik <[email protected]>
Cc: [email protected]
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
rjarzmik authored and storulf committed Nov 9, 2015
1 parent ce5c2d2 commit 26d49fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/pxamci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 26d49fe

Please sign in to comment.