aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ehci-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/ehci-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/ehci-spear.c')
-rw-r--r--drivers/usb/host/ehci-spear.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ehci-spear.c b/drivers/usb/host/ehci-spear.c
index 2e3c89a9665..37ba8c8d2fd 100644
--- a/drivers/usb/host/ehci-spear.c
+++ b/drivers/usb/host/ehci-spear.c
@@ -26,12 +26,12 @@ struct spear_ehci {
26 26
27static void spear_start_ehci(struct spear_ehci *ehci) 27static void spear_start_ehci(struct spear_ehci *ehci)
28{ 28{
29 clk_enable(ehci->clk); 29 clk_prepare_enable(ehci->clk);
30} 30}
31 31
32static void spear_stop_ehci(struct spear_ehci *ehci) 32static void spear_stop_ehci(struct spear_ehci *ehci)
33{ 33{
34 clk_disable(ehci->clk); 34 clk_disable_unprepare(ehci->clk);
35} 35}
36 36
37static int ehci_spear_setup(struct usb_hcd *hcd) 37static int ehci_spear_setup(struct usb_hcd *hcd)