Skip to content

Commit

Permalink
USB: ehci: ohci: Add clk_{un}prepare() support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Greg Kroah-Hartman committed Apr 18, 2012
1 parent 72b27a0 commit 15c9d50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/host/ehci-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ struct spear_ehci {

static void spear_start_ehci(struct spear_ehci *ehci)
{
clk_enable(ehci->clk);
clk_prepare_enable(ehci->clk);
}

static void spear_stop_ehci(struct spear_ehci *ehci)
{
clk_disable(ehci->clk);
clk_disable_unprepare(ehci->clk);
}

static int ehci_spear_setup(struct usb_hcd *hcd)
Expand Down
4 changes: 2 additions & 2 deletions drivers/usb/host/ohci-spear.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 15c9d50

Please sign in to comment.