Skip to content

Commit

Permalink
mmc: cavium-octeon: Use proper GPIO name for power control
Browse files Browse the repository at this point in the history
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: 01d9584 ("mmc: cavium: Add MMC support for Octeon SOCs.")
Signed-off-by: David Daney <[email protected]>
[[email protected]: removed point after subject line]
Signed-off-by: Jan Glauber <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
daviddaney authored and storulf committed May 19, 2017
1 parent aca6934 commit 899e4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/cavium-octeon.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ static int octeon_mmc_probe(struct platform_device *pdev)
}

host->global_pwr_gpiod = devm_gpiod_get_optional(&pdev->dev,
"power-gpios",
"power",
GPIOD_OUT_HIGH);
if (IS_ERR(host->global_pwr_gpiod)) {
dev_err(&pdev->dev, "Invalid power GPIO\n");
Expand Down

0 comments on commit 899e4aa

Please sign in to comment.