From: Tarun Kanti DebBarma Date: Fri, 20 Apr 2012 12:39:20 +0000 (+0530) Subject: ARM: OMAP: dmtimer: use devm_ API and do some cleanup in probe() X-Git-Tag: omap-cleanup-part2-for-v3.6~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74dd9ec627582bfd4477f01ceeaaa3f54e3748b8;p=pandora-kernel.git 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 Cc: Paul Walmsley Cc: Kevin Hilman Cc: Rajendra Nayak Cc: Santosh Shilimkar Signed-off-by: Tarun Kanti DebBarma Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed