usb: dwc3: pci: passing forward the ACPI companion
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 21 Sep 2015 08:14:36 +0000 (11:14 +0300)
committerFelipe Balbi <balbi@ti.com>
Sun, 27 Sep 2015 15:54:31 +0000 (10:54 -0500)
Sharing the ACPI companion with dwc3 core so it has access
to the properties defined for DWC3 in ACPI tables.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-pci.c

index f62617999f3c7fb093ff09d18088560a6ecb003e..89eb3642a78e565fd94a320e546fe06e651c674b 100644 (file)
@@ -154,6 +154,7 @@ static int dwc3_pci_probe(struct pci_dev *pci,
                goto err;
 
        dwc3->dev.parent = dev;
+       ACPI_COMPANION_SET(&dwc3->dev, ACPI_COMPANION(dev));
 
        ret = platform_device_add(dwc3);
        if (ret) {