mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
usb: dwc3: host: Stop setting the ACPI companion
[ Upstream commit 7fd069d65d
]
It is no longer needed. The sysdev pointer is now used when
assigning the ACPI companions to the xHCI ports and USB
devices.
Assigning the ACPI companion here resulted in the
fwnode->secondary pointer to be replaced also for the parent
dwc3 device since the primary fwnode (the ACPI companion)
was shared. That was unintentional and it created potential
side effects like resource leaks.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220428111056.3558-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
172cfc167c
commit
d7f35934f7
1 changed files with 0 additions and 2 deletions
|
@ -7,7 +7,6 @@
|
|||
* Authors: Felipe Balbi <balbi@ti.com>,
|
||||
*/
|
||||
|
||||
#include <linux/acpi.h>
|
||||
#include <linux/irq.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/platform_device.h>
|
||||
|
@ -83,7 +82,6 @@ int dwc3_host_init(struct dwc3 *dwc)
|
|||
}
|
||||
|
||||
xhci->dev.parent = dwc->dev;
|
||||
ACPI_COMPANION_SET(&xhci->dev, ACPI_COMPANION(dwc->dev));
|
||||
|
||||
dwc->xhci = xhci;
|
||||
|
||||
|
|
Loading…
Reference in a new issue