diff options
author | Dan Williams <dan.j.williams@intel.com> | 2014-05-21 01:08:22 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-27 23:35:10 (GMT) |
commit | a4204ff0bd576fc114357eed70e7c4e776ddf396 (patch) | |
tree | 9322cdeb51cd3b509dd3c2a68d17ccbdc1f6e46e /drivers/macintosh/adb.c | |
parent | d99f6b41308779244662109a9c2bad09a82e8ac6 (diff) | |
download | linux-a4204ff0bd576fc114357eed70e7c4e776ddf396.tar.xz |
usb: cleanup setting udev->removable from port_dev->connect_type
Once usb-acpi has set the port's connect type the usb_device's
->removable attribute can be set in the standard location
set_usb_port_removable().
This also changes behavior in the case where the firmware says that the
port connect type is unknown. In that case just use the default setting
determined from the hub descriptor.
Note, we no longer pass udev->portnum to acpi_find_child_device() in the
root hub case since:
1/ the usb-core sets this to zero
2/ acpi always expects zero
...just pass zero.
Suggested-by: Alan Stern <stern@rowland.harvard.edu>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/macintosh/adb.c')
0 files changed, 0 insertions, 0 deletions