aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/r8a66597-hcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/r8a66597-hcd.c')
-rw-r--r--drivers/usb/host/r8a66597-hcd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c
index 2ad004ae747c..110b4b9ebeaa 100644
--- a/drivers/usb/host/r8a66597-hcd.c
+++ b/drivers/usb/host/r8a66597-hcd.c
@@ -27,7 +27,6 @@
27#include <linux/kernel.h> 27#include <linux/kernel.h>
28#include <linux/sched.h> 28#include <linux/sched.h>
29#include <linux/errno.h> 29#include <linux/errno.h>
30#include <linux/init.h>
31#include <linux/timer.h> 30#include <linux/timer.h>
32#include <linux/delay.h> 31#include <linux/delay.h>
33#include <linux/list.h> 32#include <linux/list.h>
@@ -95,7 +94,7 @@ static int r8a66597_clock_enable(struct r8a66597 *r8a66597)
95 int i = 0; 94 int i = 0;
96 95
97 if (r8a66597->pdata->on_chip) { 96 if (r8a66597->pdata->on_chip) {
98 clk_enable(r8a66597->clk); 97 clk_prepare_enable(r8a66597->clk);
99 do { 98 do {
100 r8a66597_write(r8a66597, SCKE, SYSCFG0); 99 r8a66597_write(r8a66597, SCKE, SYSCFG0);
101 tmp = r8a66597_read(r8a66597, SYSCFG0); 100 tmp = r8a66597_read(r8a66597, SYSCFG0);
@@ -139,7 +138,7 @@ static void r8a66597_clock_disable(struct r8a66597 *r8a66597)
139 udelay(1); 138 udelay(1);
140 139
141 if (r8a66597->pdata->on_chip) { 140 if (r8a66597->pdata->on_chip) {
142 clk_disable(r8a66597->clk); 141 clk_disable_unprepare(r8a66597->clk);
143 } else { 142 } else {
144 r8a66597_bclr(r8a66597, PLLC, SYSCFG0); 143 r8a66597_bclr(r8a66597, PLLC, SYSCFG0);
145 r8a66597_bclr(r8a66597, XCKE, SYSCFG0); 144 r8a66597_bclr(r8a66597, XCKE, SYSCFG0);
@@ -2514,6 +2513,7 @@ static int r8a66597_probe(struct platform_device *pdev)
2514 dev_err(&pdev->dev, "Failed to add hcd\n"); 2513 dev_err(&pdev->dev, "Failed to add hcd\n");
2515 goto clean_up3; 2514 goto clean_up3;
2516 } 2515 }
2516 device_wakeup_enable(hcd->self.controller);
2517 2517
2518 return 0; 2518 return 0;
2519 2519
@@ -2534,7 +2534,7 @@ static struct platform_driver r8a66597_driver = {
2534 .probe = r8a66597_probe, 2534 .probe = r8a66597_probe,
2535 .remove = r8a66597_remove, 2535 .remove = r8a66597_remove,
2536 .driver = { 2536 .driver = {
2537 .name = (char *) hcd_name, 2537 .name = hcd_name,
2538 .owner = THIS_MODULE, 2538 .owner = THIS_MODULE,
2539 .pm = R8A66597_DEV_PM_OPS, 2539 .pm = R8A66597_DEV_PM_OPS,
2540 }, 2540 },