]> git.baikalelectronics.ru Git - kernel.git/commit
usb: core: acpi: Use the sysdev pointer instead of controller device
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 28 Apr 2022 11:10:55 +0000 (14:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 19:57:31 +0000 (21:57 +0200)
commitc1f8ccf901246e72f75f35f1d200f3fbb3ee0f68
tree15ce57fe7d760100d78d8abeceabffdf57925325
parenta407bbaba9188e98a7d9efe877a1f0bcc6d54a73
usb: core: acpi: Use the sysdev pointer instead of controller device

The controller device (hcd) does not always have the ACPI
companion assigned to it at all. We can not rely on it when
finding the ACPI companion for the root hub. Instead we need
to use the sysdev pointer.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220428111056.3558-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/usb-acpi.c