aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-spear.c
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-04-17 07:38:50 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-18 17:33:43 -0400
commit15c9d50bbb4f754c02493fa880658d6bd5b5c27d (patch)
treea987296ab00980e0175526965cfc6359a49375e4 /drivers/usb/host/ohci-spear.c
parent72b27a07efe8c7d63bc117d63e2b584a26d97e7c (diff)
USB: ehci: ohci: Add clk_{un}prepare() support
clk_{un}prepare is mandatory for platforms using common clock framework. Since these drivers are used by SPEAr platform, which supports common clock framework, add clk_{un}prepare() support for them. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ohci-spear.c')
-rw-r--r--drivers/usb/host/ohci-spear.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-spear.c b/drivers/usb/host/ohci-spear.c
index eb4640b1e402..fc7305ee3c9c 100644
--- a/drivers/usb/host/ohci-spear.c
+++ b/drivers/usb/host/ohci-spear.c
@@ -25,12 +25,12 @@ struct spear_ohci {
25 25
26static void spear_start_ohci(struct spear_ohci *ohci) 26static void spear_start_ohci(struct spear_ohci *ohci)
27{ 27{
28 clk_enable(ohci->clk); 28 clk_prepare_enable(ohci->clk);
29} 29}
30 30
31static void spear_stop_ohci(struct spear_ohci *ohci) 31static void spear_stop_ohci(struct spear_ohci *ohci)
32{ 32{
33 clk_disable(ohci->clk); 33 clk_disable_unprepare(ohci->clk);
34} 34}
35 35
36static int __devinit ohci_spear_start(struct usb_hcd *hcd) 36static int __devinit ohci_spear_start(struct usb_hcd *hcd)