[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <53159FEE.3030801@ti.com>
Date: Tue, 4 Mar 2014 11:42:06 +0200
From: Peter Ujfalusi <peter.ujfalusi@...com>
To: Alexander Shiyan <shc_work@...l.ru>
CC: Santosh Shilimkar <santosh.shilimkar@...com>,
Tony Lindgren <tony@...mide.com>,
Olof Johansson <olof@...om.net>, <linux-omap@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, Arnd Bergmann <arnd@...db.de>,
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 2/5] drivers: bus: omap_l3: Convert to use devm_request_and_ioremap()
On 03/04/2014 11:23 AM, Alexander Shiyan wrote:
>>> - l3->l3_base[2] = ioremap(res->start, resource_size(res));
>>> - if (!l3->l3_base[2]) {
>>> - dev_err(&pdev->dev, "ioremap failed\n");
>>> - ret = -ENOMEM;
>>> - goto err2;
>>> + l3->l3_base[i] = devm_request_and_ioremap(&pdev->dev, res);
>>> + if (!l3->l3_base[i]) {
>>
>> if (IS_ERR(l3->l3_base[i]))
>
> Ahh, I messed up this with devm_ioremap_resource().
> However, if there is reason to use devm_request_and_ioremap() here?
devm_request_and_ioremap() is just a wrapper for devm_ioremap_resource(). It
returns NULL in case of error (eats up the error code at the same time).
I don't have strong preference on this so I can change it to
devm_ioremap_resource()
--
Péter
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists