Commit 4bf34b8c authored by Philipp Zabel's avatar Philipp Zabel Committed by Greg Kroah-Hartman

USB: ohci-pxa27x: add clk_prepare/clk_unprepare calls

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: default avatarPhilipp 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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5d98cd4e
...@@ -219,7 +219,7 @@ static int pxa27x_start_hc(struct pxa27x_ohci *ohci, struct device *dev) ...@@ -219,7 +219,7 @@ static int pxa27x_start_hc(struct pxa27x_ohci *ohci, struct device *dev)
inf = dev->platform_data; inf = dev->platform_data;
clk_enable(ohci->clk); clk_prepare_enable(ohci->clk);
pxa27x_reset_hc(ohci); pxa27x_reset_hc(ohci);
...@@ -269,7 +269,7 @@ static void pxa27x_stop_hc(struct pxa27x_ohci *ohci, struct device *dev) ...@@ -269,7 +269,7 @@ static void pxa27x_stop_hc(struct pxa27x_ohci *ohci, struct device *dev)
__raw_writel(uhccoms, ohci->mmio_base + UHCCOMS); __raw_writel(uhccoms, ohci->mmio_base + UHCCOMS);
udelay(10); udelay(10);
clk_disable(ohci->clk); clk_disable_unprepare(ohci->clk);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment