提交 21535ab3 编写于 作者: R Roland Stigge 提交者: David Woodhouse

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: NRoland Stigge <stigge@antcom.de>
Acked-by: NAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: NArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
上级 df63fe76
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册