Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@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>

authored by

Roland Stigge and committed by
David Woodhouse
21535ab3 df63fe76

+1 -1
+1 -1
drivers/mtd/nand/lpc32xx_slc.c
··· 770 770 } 771 771 772 772 pdata->use_bbt = of_get_nand_on_flash_bbt(np); 773 - pdata->wp_gpio = of_get_named_gpio_flags(np, "gpios", 0, NULL); 773 + pdata->wp_gpio = of_get_named_gpio(np, "gpios", 0); 774 774 775 775 return pdata; 776 776 }