提交 bc2fd1b1 编写于 作者: C Christophe Leroy 提交者: 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: NChristophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: NRichard Weinberger <richard@nod.at>
Acked-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册