diff options
Diffstat (limited to 'drivers/usb/host/u132-hcd.c')
-rw-r--r-- | drivers/usb/host/u132-hcd.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/usb/host/u132-hcd.c b/drivers/usb/host/u132-hcd.c index fab764946c74..b4785934e091 100644 --- a/drivers/usb/host/u132-hcd.c +++ b/drivers/usb/host/u132-hcd.c | |||
@@ -2604,13 +2604,14 @@ static int u132_roothub_descriptor(struct u132 *u132, | |||
2604 | retval = u132_read_pcimem(u132, roothub.b, &rh_b); | 2604 | retval = u132_read_pcimem(u132, roothub.b, &rh_b); |
2605 | if (retval) | 2605 | if (retval) |
2606 | return retval; | 2606 | return retval; |
2607 | memset(desc->bitmap, 0xff, sizeof(desc->bitmap)); | 2607 | memset(desc->u.hs.DeviceRemovable, 0xff, |
2608 | desc->bitmap[0] = rh_b & RH_B_DR; | 2608 | sizeof(desc->u.hs.DeviceRemovable)); |
2609 | desc->u.hs.DeviceRemovable[0] = rh_b & RH_B_DR; | ||
2609 | if (u132->num_ports > 7) { | 2610 | if (u132->num_ports > 7) { |
2610 | desc->bitmap[1] = (rh_b & RH_B_DR) >> 8; | 2611 | desc->u.hs.DeviceRemovable[1] = (rh_b & RH_B_DR) >> 8; |
2611 | desc->bitmap[2] = 0xff; | 2612 | desc->u.hs.DeviceRemovable[2] = 0xff; |
2612 | } else | 2613 | } else |
2613 | desc->bitmap[1] = 0xff; | 2614 | desc->u.hs.DeviceRemovable[1] = 0xff; |
2614 | return 0; | 2615 | return 0; |
2615 | } | 2616 | } |
2616 | 2617 | ||