[PATCH v2 2/6] input: touchscreen: imx25 tcq driver

Fabio Estevam festevam at gmail.com
Sat Jun 21 12:55:52 PDT 2014


On Sat, Jun 21, 2014 at 7:18 AM, Jonathan Cameron <jic23 at kernel.org> wrote:
>> +
>> +       res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>
> Could this not in theory fail?

Yes, but devm_ioremap_resource will take care of it, so we don't need
to check for error here.

>
>> +       mem = devm_ioremap_resource(dev, res);
>> +       if (!mem)
>> +               return -ENOMEM;



More information about the linux-arm-kernel mailing list