Skip to content

Commit

Permalink
mtd: lpc32xx_slc: Use of_get_named_gpio()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roland Stigge authored and David Woodhouse committed Jul 6, 2012
1 parent df63fe7 commit 21535ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/lpc32xx_slc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 21535ab

Please sign in to comment.