mtd: lpc32xx_slc: Use of_get_named_gpio()

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Jul 6 13:59:08 EDT 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=21535ab39a74b5ec074e2d10b132e866472e86f9
Commit:     21535ab39a74b5ec074e2d10b132e866472e86f9
Parent:     df63fe7657d75424f58b41ac079ed8bc4b4676fb
Author:     Roland Stigge <stigge at antcom.de>
AuthorDate: Wed Jun 27 17:51:14 2012 +0200
Committer:  David Woodhouse <David.Woodhouse at intel.com>
CommitDate: Fri Jul 6 18:25:16 2012 +0100

    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 <stigge at antcom.de>
    Acked-by: Alexandre Pereira da Silva <aletes.xgr at gmail.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
    Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
---
 drivers/mtd/nand/lpc32xx_slc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/lpc32xx_slc.c b/drivers/mtd/nand/lpc32xx_slc.c
index 1577a9b..1166650 100644
--- a/drivers/mtd/nand/lpc32xx_slc.c
+++ b/drivers/mtd/nand/lpc32xx_slc.c
@@ -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;
 }



More information about the linux-mtd-cvs mailing list