USB: Fix device stati for removable and powerctrl (typo)
authorAlexander Holler <holler@ahsoftware.de>
Thu, 27 Jan 2011 21:50:07 +0000 (22:50 +0100)
committerRemy Bohmer <linux@bohmer.net>
Sat, 5 Feb 2011 12:54:51 +0000 (13:54 +0100)
I currently don't know if the error could have other consequences
than a wrong output when turning debug on.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
common/usb.c

index 10e23de6a410b3c5c05692723393896fdd93b340..aa28de028fc3e4c64927af5ad61d6fcea6743e01 100644 (file)
@@ -1220,7 +1220,7 @@ int usb_hub_configure(struct usb_device *dev)
                hub->desc.DeviceRemovable[i] = descriptor->DeviceRemovable[i];
 
        for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); i++)
-               hub->desc.DeviceRemovable[i] = descriptor->PortPowerCtrlMask[i];
+               hub->desc.PortPowerCtrlMask[i] = descriptor->PortPowerCtrlMask[i];
 
        dev->maxchild = descriptor->bNbrPorts;
        USB_HUB_PRINTF("%d ports detected\n", dev->maxchild);