diff options
Diffstat (limited to 'drivers/usb/host/xhci-hub.c')
-rw-r--r-- | drivers/usb/host/xhci-hub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c index 43e0a099d63..847b071b6fc 100644 --- a/drivers/usb/host/xhci-hub.c +++ b/drivers/usb/host/xhci-hub.c | |||
@@ -45,8 +45,8 @@ static void xhci_hub_descriptor(struct xhci_hcd *xhci, | |||
45 | temp = 1 + (ports / 8); | 45 | temp = 1 + (ports / 8); |
46 | desc->bDescLength = 7 + 2 * temp; | 46 | desc->bDescLength = 7 + 2 * temp; |
47 | 47 | ||
48 | memset(&desc->DeviceRemovable[0], 0, temp); | 48 | memset(&desc->u.hs.DeviceRemovable[0], 0, temp); |
49 | memset(&desc->DeviceRemovable[temp], 0xff, temp); | 49 | memset(&desc->u.hs.DeviceRemovable[temp], 0xff, temp); |
50 | 50 | ||
51 | /* Ugh, these should be #defines, FIXME */ | 51 | /* Ugh, these should be #defines, FIXME */ |
52 | /* Using table 11-13 in USB 2.0 spec. */ | 52 | /* Using table 11-13 in USB 2.0 spec. */ |