diff mbox

[v1,1/1] spi: pxa2xx-pci: fix ACPI-based enumeration of SPI devices

Message ID 1472037090-123990-1-git-send-email-andriy.shevchenko@linux.intel.com (mailing list archive)
State Accepted
Commit b70cd2de0ea85f5ab51a1d01893cba6415011b9d
Headers show

Commit Message

Andy Shevchenko Aug. 24, 2016, 11:11 a.m. UTC
Slave devices are not enumerated by ACPI data because the ACPI handle for the
core driver is NULL if it was enumerated by PCI.

Propagate firmware node handle of the PCI device to the platform device.

Suggested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi-pxa2xx-pci.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/drivers/spi/spi-pxa2xx-pci.c b/drivers/spi/spi-pxa2xx-pci.c
index ca34fba..58d9894 100644
--- a/drivers/spi/spi-pxa2xx-pci.c
+++ b/drivers/spi/spi-pxa2xx-pci.c
@@ -219,6 +219,7 @@  static int pxa2xx_spi_pci_probe(struct pci_dev *dev,
 		return PTR_ERR(ssp->clk);
 
 	memset(&pi, 0, sizeof(pi));
+	pi.fwnode = dev->dev.fwnode;
 	pi.parent = &dev->dev;
 	pi.name = "pxa2xx-spi";
 	pi.id = ssp->port_id;