]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/usb/core/hub.c
USB: straighten out port feature vs. port status usage
[net-next-2.6.git] / drivers / usb / core / hub.c
index 5ac27ed0c6356e3ccdcd7717e737b92c47a3e928..497dbb29744d720eb9417bf959c8c2c1d6ec2a80 100644 (file)
@@ -3037,7 +3037,7 @@ static void hub_port_connect_change(struct usb_hub *hub, int port1,
 
                /* maybe switch power back on (e.g. root hub was reset) */
                if ((wHubCharacteristics & HUB_CHAR_LPSM) < 2
-                               && !(portstatus & (1 << USB_PORT_FEAT_POWER)))
+                               && !(portstatus & USB_PORT_STAT_POWER))
                        set_port_feature(hdev, port1, USB_PORT_FEAT_POWER);
 
                if (portstatus & USB_PORT_STAT_ENABLE)