Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1212967

[PATCH 5/5] usb: dwc3: pci: passing forward the ACPI companion

From Heikki Krogerus <heikki.krogerus@linux.intel.com>
Newsgroups linux.kernel
Subject [PATCH 5/5] usb: dwc3: pci: passing forward the ACPI companion
Date 2015-08-25 13:10 +0200
Message-ID <q1kh4-4Fj-31@gated-at.bofh.it> (permalink)
References <q1kh3-4Fj-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/usb/dwc3/dwc3-pci.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c
index f626179..89eb364 100644
--- a/drivers/usb/dwc3/dwc3-pci.c
+++ b/drivers/usb/dwc3/dwc3-pci.c
@@ -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) {
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] usb: common and dwc3: converting to unified device property Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2015-08-25 13:10 +0200
  [PATCH 5/5] usb: dwc3: pci: passing forward the ACPI companion Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2015-08-25 13:10 +0200
  Re: [PATCH 0/5] usb: common and dwc3: converting to unified device  property Heikki Krogerus <heikki.krogerus@linux.intel.com> - 2015-08-26 12:20 +0200

csiph-web