]> git.baikalelectronics.ru Git - kernel.git/commit
USB: OHCI: don't look at the root hub to get the number of ports
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 20 Apr 2010 14:37:57 +0000 (10:37 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Apr 2010 16:25:10 +0000 (09:25 -0700)
commitcfa32f128e53b9c9a5edc572be0fd0d4cc60a1a9
tree53a72787cba660277e072f094ce4447c335b37e9
parent3cd2ec78aac8e30dc0c41544ebfc5fc4761b2ba5
USB: OHCI: don't look at the root hub to get the number of ports

This patch (as1371) fixes a small bug in ohci-hcd.  The HCD already
knows how many ports the controller has; there's no need to go looking
at the root hub's usb_device structure to find out.  Especially since
the root hub's maxchild value is set correctly only while the root hub
is bound to the hub driver.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-hub.c