usb: Use hub port data to determine whether a port is removable
authorMatthew Garrett <mjg@redhat.com>
Fri, 3 Feb 2012 22:11:55 +0000 (17:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 16:40:11 +0000 (08:40 -0800)
commitd35e70d50a0641ebc1502fd343bef9b4011ada27
tree0bbfc34982200c98ed9191dab8c5efc93029aaf6
parent0846e7e9856c0928223447d9349a877202a63f24
usb: Use hub port data to determine whether a port is removable

Hubs have a flag to indicate whether a given port carries removable devices
or not. This is not strictly accurate in that some built-in devices
will be flagged as removable, but followup patches will make use of platform
data to make this more reliable.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c