[PATCHv9 3/8] I2C: OMAP: use devm_* functions

Shubhrajyoti Datta omaplinuxkernel at gmail.com
Mon Jun 25 06:27:28 EDT 2012


On Mon, Jun 25, 2012 at 3:21 PM, Felipe Balbi <balbi at ti.com> wrote:
> On Thu, Jun 21, 2012 at 03:38:44PM +0530, Shubhrajyoti D wrote:
>> The various devm_* functions allocate memory that is released when a driver
>> detaches. This patch uses devm_kzalloc, devm_request_and_ioremap for data
>> that is allocated in the probe function of a platform device and is only
>> freed in the remove function.
>>
>> Signed-off-by: Shubhrajyoti D <shubhrajyoti at ti.com>
>
> this looks a lot like:
> http://marc.info/?l=linux-omap&m=133969143407572&w=2
>
> I wonder why wasn't that one used instead ?

Indeed will drop this one from the series.
In fact, missed the irq part.



More information about the linux-arm-kernel mailing list