Axel Lin 19412ce9fc drivers/rtc/rtc-omap.c: fix a memory leak
request_mem_region() will call kzalloc to allocate memory for struct
resource.  release_resource() unregisters the resource but does not free
the allocated memory, thus use release_mem_region() instead to fix the
memory leak.

Also add a missing iounmap() in omap_rtc_remove().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Sekhar Nori <nsekhar@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tony Lindgren <tony@atomide.com>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-01-13 08:03:12 -08:00
..
2010-12-13 22:48:21 +01:00
2010-11-11 11:34:27 +01:00
2010-11-11 11:34:27 +01:00
2009-09-23 07:39:46 -07:00
2009-02-11 14:25:36 -08:00
2010-11-29 15:48:19 +11:00
2009-02-05 12:56:46 -08:00
2009-09-23 07:39:43 -07:00
2009-04-01 08:59:24 -07:00
2009-09-23 07:39:43 -07:00
2009-09-23 07:39:43 -07:00
2010-10-29 00:29:06 +02:00
2009-04-02 01:05:32 +00:00
2009-09-23 07:39:43 -07:00
2010-08-11 08:59:08 -07:00
2010-12-22 19:43:34 -08:00
2010-11-08 15:08:42 +09:00
2008-11-21 01:24:38 -08:00
2008-11-14 16:37:54 -08:00
2009-12-16 07:20:00 -08:00