Re[2]: [PATCH 2/5] mtd: nand-gpio: Using resource-managed functions
Alexander Shiyan
shc_work at mail.ru
Sat Apr 13 08:42: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()
Will keep this in mind but I cannot test this since I pass tests with 3.8.
Thanks.
---
More information about the linux-mtd
mailing list