diff options
author | Vladimir Zapolskiy <[email protected]> | 2010-04-06 14:35:07 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-04-07 08:38:05 -0700 |
commit | c783a29efcbc90a90ccfec8956c7ff0854301c34 (patch) | |
tree | a2276c69020c6600112371023d401fa40f83168b /tools/perf/util/trace-event-scripting.c | |
parent | 8725d5416213a145ccc9c236dbd26830ba409e00 (diff) |
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.
[[email protected]: coding-style fixes]
Signed-off-by: Vladimir Zapolskiy <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Cc: Daniel Mack <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions