ARM: OMAP: dmtimer: use devm_ API and do some cleanup in probe()
authorTarun Kanti DebBarma <tarun.kanti@ti.com>
Fri, 20 Apr 2012 12:39:20 +0000 (18:09 +0530)
committerTony Lindgren <tony@atomide.com>
Thu, 5 Jul 2012 09:15:55 +0000 (02:15 -0700)
commit74dd9ec627582bfd4477f01ceeaaa3f54e3748b8
treedad19ae8fe028e4924dc14e63100dc42490abc11
parentac5b0ea3d00d231dd9cedd45636b29defc368a4c
ARM: OMAP: dmtimer: use devm_ API and do some cleanup in probe()

Replace the regular kzalloc and ioremap with the devm_ equivalent
to simplify error handling. We don't need kree() any more in
omap_dm_timer_remove().

Also added *dev* pointer to reference pdev->dev which makes the
usage shorter in code.

Cc: Cousson, Benoit <b-cousson@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Tarun Kanti DebBarma <tarun.kanti@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/dmtimer.c