Commit bc2fd1b1 authored by Christophe Leroy's avatar Christophe Leroy Committed by Richard Weinberger

mtd: nand: gpio: Fix ALE gpio configuration

Fixes a copy/paste error in commit f3d0d8d9 ("mtd: nand: gpio:
Convert to use GPIO descriptors") which breaks gpio-nand driver

Fixes: f3d0d8d9 ("mtd: nand: gpio: Convert to use GPIO descriptors")
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: default avatarRichard Weinberger <richard@nod.at>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent e44b9a9c
...@@ -253,9 +253,9 @@ static int gpio_nand_probe(struct platform_device *pdev) ...@@ -253,9 +253,9 @@ static int gpio_nand_probe(struct platform_device *pdev)
goto out_ce; goto out_ce;
} }
gpiomtd->nwp = devm_gpiod_get(dev, "ale", GPIOD_OUT_LOW); gpiomtd->ale = devm_gpiod_get(dev, "ale", GPIOD_OUT_LOW);
if (IS_ERR(gpiomtd->nwp)) { if (IS_ERR(gpiomtd->ale)) {
ret = PTR_ERR(gpiomtd->nwp); ret = PTR_ERR(gpiomtd->ale);
goto out_ce; goto out_ce;
} }
......
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