diff options
Diffstat (limited to 'drivers/usb/host/r8a66597-hcd.c')
-rw-r--r-- | drivers/usb/host/r8a66597-hcd.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index c4bcfaedeec9..bdc82fea0a1f 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c | |||
@@ -2141,7 +2141,8 @@ static void r8a66597_hub_descriptor(struct r8a66597 *r8a66597, | |||
2141 | desc->bNbrPorts = r8a66597->max_root_hub; | 2141 | desc->bNbrPorts = r8a66597->max_root_hub; |
2142 | desc->bDescLength = 9; | 2142 | desc->bDescLength = 9; |
2143 | desc->bPwrOn2PwrGood = 0; | 2143 | desc->bPwrOn2PwrGood = 0; |
2144 | desc->wHubCharacteristics = cpu_to_le16(0x0011); | 2144 | desc->wHubCharacteristics = |
2145 | cpu_to_le16(HUB_CHAR_INDV_PORT_LPSM | HUB_CHAR_NO_OCPM); | ||
2145 | desc->u.hs.DeviceRemovable[0] = | 2146 | desc->u.hs.DeviceRemovable[0] = |
2146 | ((1 << r8a66597->max_root_hub) - 1) << 1; | 2147 | ((1 << r8a66597->max_root_hub) - 1) << 1; |
2147 | desc->u.hs.DeviceRemovable[1] = ~0; | 2148 | desc->u.hs.DeviceRemovable[1] = ~0; |
@@ -2483,9 +2484,8 @@ static int r8a66597_probe(struct platform_device *pdev) | |||
2483 | r8a66597->max_root_hub = 2; | 2484 | r8a66597->max_root_hub = 2; |
2484 | 2485 | ||
2485 | spin_lock_init(&r8a66597->lock); | 2486 | spin_lock_init(&r8a66597->lock); |
2486 | init_timer(&r8a66597->rh_timer); | 2487 | setup_timer(&r8a66597->rh_timer, r8a66597_timer, |
2487 | r8a66597->rh_timer.function = r8a66597_timer; | 2488 | (unsigned long)r8a66597); |
2488 | r8a66597->rh_timer.data = (unsigned long)r8a66597; | ||
2489 | r8a66597->reg = reg; | 2489 | r8a66597->reg = reg; |
2490 | 2490 | ||
2491 | /* make sure no interrupts are pending */ | 2491 | /* make sure no interrupts are pending */ |
@@ -2496,9 +2496,8 @@ static int r8a66597_probe(struct platform_device *pdev) | |||
2496 | 2496 | ||
2497 | for (i = 0; i < R8A66597_MAX_NUM_PIPE; i++) { | 2497 | for (i = 0; i < R8A66597_MAX_NUM_PIPE; i++) { |
2498 | INIT_LIST_HEAD(&r8a66597->pipe_queue[i]); | 2498 | INIT_LIST_HEAD(&r8a66597->pipe_queue[i]); |
2499 | init_timer(&r8a66597->td_timer[i]); | 2499 | setup_timer(&r8a66597->td_timer[i], r8a66597_td_timer, |
2500 | r8a66597->td_timer[i].function = r8a66597_td_timer; | 2500 | (unsigned long)r8a66597); |
2501 | r8a66597->td_timer[i].data = (unsigned long)r8a66597; | ||
2502 | setup_timer(&r8a66597->interval_timer[i], | 2501 | setup_timer(&r8a66597->interval_timer[i], |
2503 | r8a66597_interval_timer, | 2502 | r8a66597_interval_timer, |
2504 | (unsigned long)r8a66597); | 2503 | (unsigned long)r8a66597); |