diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/usb/host/ohci-hub.c | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/usb/host/ohci-hub.c')
-rw-r--r-- | drivers/usb/host/ohci-hub.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c index cddcda95b579..9154615292db 100644 --- a/drivers/usb/host/ohci-hub.c +++ b/drivers/usb/host/ohci-hub.c | |||
@@ -580,15 +580,16 @@ ohci_hub_descriptor ( | |||
580 | temp |= 0x0008; | 580 | temp |= 0x0008; |
581 | desc->wHubCharacteristics = (__force __u16)cpu_to_hc16(ohci, temp); | 581 | desc->wHubCharacteristics = (__force __u16)cpu_to_hc16(ohci, temp); |
582 | 582 | ||
583 | /* two bitmaps: ports removable, and usb 1.0 legacy PortPwrCtrlMask */ | 583 | /* ports removable, and usb 1.0 legacy PortPwrCtrlMask */ |
584 | rh = roothub_b (ohci); | 584 | rh = roothub_b (ohci); |
585 | memset(desc->bitmap, 0xff, sizeof(desc->bitmap)); | 585 | memset(desc->u.hs.DeviceRemovable, 0xff, |
586 | desc->bitmap [0] = rh & RH_B_DR; | 586 | sizeof(desc->u.hs.DeviceRemovable)); |
587 | desc->u.hs.DeviceRemovable[0] = rh & RH_B_DR; | ||
587 | if (ohci->num_ports > 7) { | 588 | if (ohci->num_ports > 7) { |
588 | desc->bitmap [1] = (rh & RH_B_DR) >> 8; | 589 | desc->u.hs.DeviceRemovable[1] = (rh & RH_B_DR) >> 8; |
589 | desc->bitmap [2] = 0xff; | 590 | desc->u.hs.DeviceRemovable[2] = 0xff; |
590 | } else | 591 | } else |
591 | desc->bitmap [1] = 0xff; | 592 | desc->u.hs.DeviceRemovable[1] = 0xff; |
592 | } | 593 | } |
593 | 594 | ||
594 | /*-------------------------------------------------------------------------*/ | 595 | /*-------------------------------------------------------------------------*/ |