mtd: lpc32xx_slc: Use of_get_named_gpio()

This patch makes the lpc32xx_slc driver use of_get_named_gpio() instead of
of_get_named_gpio_flags() whose flags are discarded anyway.

Signed-off-by: Roland Stigge <[email protected]>
Acked-by: Alexandre Pereira da Silva <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
Roland Stigge authored and David Woodhouse committed 2012-07-06 18:25:16 +01:00
1 parent df63fe7657
commit 21535ab39a
1 file changed
+1 -1
+1 -1
View File
@@ -770,7 +770,7 @@ static struct lpc32xx_nand_cfg_slc *lpc32xx_parse_dt(struct device *dev)
}
pdata->use_bbt = of_get_nand_on_flash_bbt(np);
pdata->wp_gpio = of_get_named_gpio_flags(np, "gpios", 0, NULL);
pdata->wp_gpio = of_get_named_gpio(np, "gpios", 0);
return pdata;
}