Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: ohci-s3c2410.c: Use clk_prepare_enable/clk_disable_unprepare

This patch modifies the ohci-s3c2410 driver to prepare and unprepare
clocks in addition to enabling and disabling, since it is required
by common clock framework.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>

authored by

Tomasz Figa and committed by
Kukjin Kim
d0127f6f 8d6c742a

+4 -4
+4 -4
drivers/usb/host/ohci-s3c2410.c
··· 47 47 48 48 dev_dbg(&dev->dev, "s3c2410_start_hc:\n"); 49 49 50 - clk_enable(usb_clk); 50 + clk_prepare_enable(usb_clk); 51 51 mdelay(2); /* let the bus clock stabilise */ 52 52 53 - clk_enable(clk); 53 + clk_prepare_enable(clk); 54 54 55 55 if (info != NULL) { 56 56 info->hcd = hcd; ··· 75 75 (info->enable_oc)(info, 0); 76 76 } 77 77 78 - clk_disable(clk); 79 - clk_disable(usb_clk); 78 + clk_disable_unprepare(clk); 79 + clk_disable_unprepare(usb_clk); 80 80 } 81 81 82 82 /* ohci_s3c2410_hub_status_data