Commit d0127f6f authored by Tomasz Figa's avatar Tomasz Figa Committed by Kukjin Kim

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: default avatarTomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 8d6c742a
...@@ -47,10 +47,10 @@ static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd) ...@@ -47,10 +47,10 @@ static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd)
dev_dbg(&dev->dev, "s3c2410_start_hc:\n"); dev_dbg(&dev->dev, "s3c2410_start_hc:\n");
clk_enable(usb_clk); clk_prepare_enable(usb_clk);
mdelay(2); /* let the bus clock stabilise */ mdelay(2); /* let the bus clock stabilise */
clk_enable(clk); clk_prepare_enable(clk);
if (info != NULL) { if (info != NULL) {
info->hcd = hcd; info->hcd = hcd;
...@@ -75,8 +75,8 @@ static void s3c2410_stop_hc(struct platform_device *dev) ...@@ -75,8 +75,8 @@ static void s3c2410_stop_hc(struct platform_device *dev)
(info->enable_oc)(info, 0); (info->enable_oc)(info, 0);
} }
clk_disable(clk); clk_disable_unprepare(clk);
clk_disable(usb_clk); clk_disable_unprepare(usb_clk);
} }
/* ohci_s3c2410_hub_status_data /* ohci_s3c2410_hub_status_data
......
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