projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21a42c9
)
ARM: OMAP2: Add missing iounmap in omap4430_phy_init
author
Todd Poynor
<toddpoynor@google.com>
Thu, 26 May 2011 19:25:53 +0000
(12:25 -0700)
committer
Tony Lindgren
<tony@atomide.com>
Wed, 1 Jun 2011 09:25:04 +0000
(
02:25
-0700)
!dev case needs iounmap before return.
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_phy_internal.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-omap2/omap_phy_internal.c
b/arch/arm/mach-omap2/omap_phy_internal.c
index f47813edd95143d938c554fd3dc19b71f492237a..58775e3c84762e59b9cbe3c82a5d4022638f15ae 100644
(file)
--- a/
arch/arm/mach-omap2/omap_phy_internal.c
+++ b/
arch/arm/mach-omap2/omap_phy_internal.c
@@
-56,8
+56,10
@@
int omap4430_phy_init(struct device *dev)
/* Power down the phy */
__raw_writel(PHY_PD, ctrl_base + CONTROL_DEV_CONF);
- if (!dev)
+ if (!dev) {
+ iounmap(ctrl_base);
return 0;
+ }
phyclk = clk_get(dev, "ocp2scp_usb_phy_ick");
if (IS_ERR(phyclk)) {