mtd: nand: gpio: Fix ALE gpio configuration

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Dec 18 08:59:02 PST 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=bc2fd1b11097ad981478abcc0328784ea131ac29
Commit:     bc2fd1b11097ad981478abcc0328784ea131ac29
Parent:     e44b9a9c135727f3410e029910275f40681dc8bc
Author:     Christophe Leroy <christophe.leroy at c-s.fr>
AuthorDate: Wed Dec 6 18:27:14 2017 +0100
Committer:  Richard Weinberger <richard at nod.at>
CommitDate: Fri Dec 15 22:27:54 2017 +0100

    mtd: nand: gpio: Fix ALE gpio configuration
    
    Fixes a copy/paste error in commit f3d0d8d938b4d ("mtd: nand: gpio:
    Convert to use GPIO descriptors") which breaks gpio-nand driver
    
    Fixes: f3d0d8d938b4d ("mtd: nand: gpio: Convert to use GPIO descriptors")
    Cc: Linus Walleij <linus.walleij at linaro.org>
    Signed-off-by: Christophe Leroy <christophe.leroy at c-s.fr>
    Reviewed-by: Richard Weinberger <richard at nod.at>
    Acked-by: Boris Brezillon <boris.brezillon at free-electrons.com>
    Reviewed-by: Linus Walleij <linus.walleij at linaro.org>
    Signed-off-by: Richard Weinberger <richard at nod.at>
---
 drivers/mtd/nand/gpio.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/nand/gpio.c b/drivers/mtd/nand/gpio.c
index 484f7fbc3f7d..a8bde6665c24 100644
--- a/drivers/mtd/nand/gpio.c
+++ b/drivers/mtd/nand/gpio.c
@@ -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;
 	}
 



More information about the linux-mtd-cvs mailing list