mtd: lpc32xx_slc: Use of_get_named_gpio()
authorRoland Stigge <stigge@antcom.de>
Wed, 27 Jun 2012 15:51:14 +0000 (17:51 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 6 Jul 2012 17:25:16 +0000 (18:25 +0100)
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 <stigge@antcom.de>
Acked-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/lpc32xx_slc.c

index 1577a9b0d0c2e526dcb66b37af83ed886f76af50..116665015269d5b7f41655488235c93b6a59db8d 100644 (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;
 }