diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-12-06 12:27:14 -0500 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2017-12-15 16:27:54 -0500 |
commit | bc2fd1b11097ad981478abcc0328784ea131ac29 (patch) | |
tree | d03115b3a6d772d8990eff87d53f4c35bf79b487 | |
parent | e44b9a9c135727f3410e029910275f40681dc8bc (diff) |
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@linaro.org>
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Richard Weinberger <richard@nod.at>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r-- | drivers/mtd/nand/gpio.c | 6 |
1 files 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) | |||
253 | goto out_ce; | 253 | goto out_ce; |
254 | } | 254 | } |
255 | 255 | ||
256 | gpiomtd->nwp = devm_gpiod_get(dev, "ale", GPIOD_OUT_LOW); | 256 | gpiomtd->ale = devm_gpiod_get(dev, "ale", GPIOD_OUT_LOW); |
257 | if (IS_ERR(gpiomtd->nwp)) { | 257 | if (IS_ERR(gpiomtd->ale)) { |
258 | ret = PTR_ERR(gpiomtd->nwp); | 258 | ret = PTR_ERR(gpiomtd->ale); |
259 | goto out_ce; | 259 | goto out_ce; |
260 | } | 260 | } |
261 | 261 | ||