Re: [PATCH 1/3] ARM: OMAP: dmtimer: Use devm_ API and do some cleanup in probe()

2012-04-16 Thread DebBarma, Tarun Kanti
On Mon, Apr 16, 2012 at 8:32 PM, Shubhrajyoti wrote: > On Monday 16 April 2012 05:55 PM, Tarun Kanti DebBarma wrote: >> Replace the regular kzalloc and ioremap with the devm_ equivalent >> to simplify error handling. We don't need kree() anymore in >> omap_dm_timer_remove(). >> >> Also added *dev*

Re: [PATCH 1/3] ARM: OMAP: dmtimer: Use devm_ API and do some cleanup in probe()

2012-04-16 Thread Shubhrajyoti
On Monday 16 April 2012 05:55 PM, Tarun Kanti DebBarma wrote: > Replace the regular kzalloc and ioremap with the devm_ equivalent > to simplify error handling. We don't need kree() anymore in > omap_dm_timer_remove(). > > Also added *dev* pointer to reference pdev->dev which makes the > usage short

[PATCH 1/3] ARM: OMAP: dmtimer: Use devm_ API and do some cleanup in probe()

2012-04-16 Thread Tarun Kanti DebBarma
Replace the regular kzalloc and ioremap with the devm_ equivalent to simplify error handling. We don't need kree() anymore in omap_dm_timer_remove(). Also added *dev* pointer to reference pdev->dev which makes the usage shorter in code. Signed-off-by: Tarun Kanti DebBarma --- arch/arm/plat-omap