[PATCH 2/5] mtd: nand-gpio: Using resource-managed functions
Fabio Estevam
festevam at gmail.com
Sat Apr 13 08:34:37 EDT 2013
On Sat, Apr 13, 2013 at 4:06 AM, Alexander Shiyan <shc_work at mail.ru> wrote:
> - res1 = gpio_nand_get_io_sync(dev);
> - if (res1) {
> - gpiomtd->io_sync = request_and_remap(res1, 4, "NAND sync", &ret);
> + res = gpio_nand_get_io_sync(pdev);
> + if (res) {
> + gpiomtd->io_sync = devm_request_and_ioremap(&pdev->dev, res);
Documentation/driver-model/devres.txt says
devm_request_and_ioremap() : obsoleted by devm_ioremap_resource()
More information about the linux-mtd
mailing list