Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -253,9 +253,9 @@ static int gpio_nand_probe(struct platform_device *pdev)
		goto out_ce;
	}

	gpiomtd->nwp = devm_gpiod_get(dev, "ale", GPIOD_OUT_LOW);
	if (IS_ERR(gpiomtd->nwp)) {
		ret = PTR_ERR(gpiomtd->nwp);
	gpiomtd->ale = devm_gpiod_get(dev, "ale", GPIOD_OUT_LOW);
	if (IS_ERR(gpiomtd->ale)) {
		ret = PTR_ERR(gpiomtd->ale);
		goto out_ce;
	}