From: Philipp Zabel Date: Thu, 15 Mar 2012 18:20:24 +0000 (+0100) Subject: USB: ohci-pxa27x: add clk_prepare/clk_unprepare calls X-Git-Tag: MMI-PSA29.97-13-9~17266^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4bf34b8c6b10a154a7fb1fc20818e20a27d4a539;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Philipp Zabel Cc: Haojian Zhuang Cc: Eric Miao Cc: Alan Stern Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-pxa27x.c b/drivers/usb/host/ohci-pxa27x.c index 4db399c01348..c31b2815be1c 100644 --- a/drivers/usb/host/ohci-pxa27x.c +++ b/drivers/usb/host/ohci-pxa27x.c @@ -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); @@ -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); }