Commit 899e4aad authored by David Daney's avatar David Daney Committed by Ulf Hansson

mmc: cavium-octeon: Use proper GPIO name for power control

The devm_gpiod_get_optional() function appends a "-gpios" to the
string passed to it, so if we want to find the "power-gpios" signal,
we must pass "power" to this function.

Fixes: 01d95843 ("mmc: cavium: Add MMC support for Octeon SOCs.")
Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
[jglauber@cavium.com: removed point after subject line]
Signed-off-by: default avatarJan Glauber <jglauber@cavium.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent aca69344
...@@ -267,7 +267,7 @@ static int octeon_mmc_probe(struct platform_device *pdev) ...@@ -267,7 +267,7 @@ static int octeon_mmc_probe(struct platform_device *pdev)
} }
host->global_pwr_gpiod = devm_gpiod_get_optional(&pdev->dev, host->global_pwr_gpiod = devm_gpiod_get_optional(&pdev->dev,
"power-gpios", "power",
GPIOD_OUT_HIGH); GPIOD_OUT_HIGH);
if (IS_ERR(host->global_pwr_gpiod)) { if (IS_ERR(host->global_pwr_gpiod)) {
dev_err(&pdev->dev, "Invalid power GPIO\n"); dev_err(&pdev->dev, "Invalid power GPIO\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment