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>
This commit is contained in:
Viresh Kumar
2012-04-17 17:08:50 +05:30
committed by Greg Kroah-Hartman
szülő 72b27a07ef
commit 15c9d50bbb
2 fájl változott, egészen pontosan 4 új sor hozzáadva és 4 régi sor törölve

Fájl megtekintése

@@ -25,12 +25,12 @@ struct spear_ohci {
static void spear_start_ohci(struct spear_ohci *ohci)
{
clk_enable(ohci->clk);
clk_prepare_enable(ohci->clk);
}
static void spear_stop_ohci(struct spear_ohci *ohci)
{
clk_disable(ohci->clk);
clk_disable_unprepare(ohci->clk);
}
static int __devinit ohci_spear_start(struct usb_hcd *hcd)