diff options
author | Vladimir Zapolskiy <vzapolskiy@gmail.com> | 2010-04-06 21:35:07 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-07 15:38:05 (GMT) |
commit | c783a29efcbc90a90ccfec8956c7ff0854301c34 (patch) | |
tree | a2276c69020c6600112371023d401fa40f83168b /arch | |
parent | 8725d5416213a145ccc9c236dbd26830ba409e00 (diff) | |
download | linux-fsl-qoriq-c783a29efcbc90a90ccfec8956c7ff0854301c34.tar.xz |
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions