aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_phy_internal.c
diff options
context:
space:
mode:
authorRuslan Bilovol <ruslan.bilovol@ti.com>2012-02-10 12:23:28 +0200
committerDan Murphy <dmurphy@ti.com>2012-02-13 11:01:34 -0600
commit3af5d6abf88856c254142cf6de4f7cc03fbf48cc (patch)
tree50495168256df6cd3cfabeb3f834e4fc2481c8c4 /arch/arm/mach-omap2/omap_phy_internal.c
parent85841b8db72de0efd9572794b9c7b6f943ad07a4 (diff)
downloadkernel_samsung_espresso10-3af5d6abf88856c254142cf6de4f7cc03fbf48cc.tar.gz
kernel_samsung_espresso10-3af5d6abf88856c254142cf6de4f7cc03fbf48cc.tar.bz2
kernel_samsung_espresso10-3af5d6abf88856c254142cf6de4f7cc03fbf48cc.zip
usb: otg: OMAP4: Fix the omap4430_phy_set_clk function
If the clocks are enabled and we want to enable them again omap4430_phy_set_clk disables them. Fix this - so now if we try to enable already enabled clocks it works correctly. Change-Id: I657e13651c908eaa7caf2fd4ff86028c50902fd6 Signed-off-by: Ruslan Bilovol <ruslan.bilovol@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_phy_internal.c')
-rw-r--r--arch/arm/mach-omap2/omap_phy_internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap_phy_internal.c b/arch/arm/mach-omap2/omap_phy_internal.c
index 9ecedba0215..7b01062c9c4 100644
--- a/arch/arm/mach-omap2/omap_phy_internal.c
+++ b/arch/arm/mach-omap2/omap_phy_internal.c
@@ -106,7 +106,7 @@ int omap4430_phy_set_clk(struct device *dev, int on)
clk_enable(clk48m);
clk_enable(clk32k);
state = 1;
- } else if (state) {
+ } else if (!on && state) {
/* Disable the phy clocks */
clk_disable(phyclk);
clk_disable(clk48m);