Vladimir Zapolskiy c783a29efc rtc-mxc: multiple fixes in rtc-mxc probe method
On exit paths in mxc_rtc_probe() method some resources are not freed
correctly.

This patch fixes:
* unrequested memory region containing imx RTC registers
* iounmap() isn't called on exit_free_pdata branch
* clock get rate is called for freed clock source
* clock isn't disabled on exit_put_clk branch

To simplify the fix managed device resources are used.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-07 08:38:05 -07:00
..
2010-03-07 22:17:16 +01:00
2010-03-07 22:17:16 +01:00
2009-09-17 09:47:24 +02:00
2009-09-23 07:39:46 -07:00
2009-02-11 14:25:36 -08: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
2008-10-20 08:52:41 -07:00
2009-09-23 07:39:43 -07:00
2009-04-02 01:05:32 +00:00
2009-09-23 07:39:43 -07: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