Skip to content

Commit

Permalink
USB: ohci-pxa27x: add clk_prepare/clk_unprepare calls
Browse files Browse the repository at this point in the history
This patch adds clk_prepare/clk_unprepare calls to the ohci-pxa27x
driver by using the helper functions clk_prepare_enable and
clk_disable_unprepare.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Cc: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Philipp Zabel authored and Greg Kroah-Hartman committed Mar 15, 2012
1 parent 5d98cd4 commit 4bf34b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/host/ohci-pxa27x.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int pxa27x_start_hc(struct pxa27x_ohci *ohci, struct device *dev)

inf = dev->platform_data;

clk_enable(ohci->clk);
clk_prepare_enable(ohci->clk);

pxa27x_reset_hc(ohci);

Expand Down Expand Up @@ -269,7 +269,7 @@ static void pxa27x_stop_hc(struct pxa27x_ohci *ohci, struct device *dev)
__raw_writel(uhccoms, ohci->mmio_base + UHCCOMS);
udelay(10);

clk_disable(ohci->clk);
clk_disable_unprepare(ohci->clk);
}


Expand Down

0 comments on commit 4bf34b8

Please sign in to comment.