]> git.karo-electronics.de Git - karo-tx-linux.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>
Wed, 12 May 2010 22:02:37 +0000 (15:02 -0700)
commit2effcfb90e7e66c668bae37b47a9f804cba6781b
treeae7a6698ac2ed18cb34689e049e1283a954a4b48
parent3056f8ac2c84c3007726c00e4142eff0ff4db23e
USB: OHCI: don't look at the root hub to get the number of ports

commit fcf7d2141f4a363a4a8454c4a0f26bb69e766c5f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/ohci-hub.c