]> Git Repo - linux.git/commitdiff
spi: pxa2xx-pci: fix ACPI-based enumeration of SPI devices
authorAndy Shevchenko <[email protected]>
Wed, 24 Aug 2016 11:11:30 +0000 (14:11 +0300)
committerMark Brown <[email protected]>
Wed, 24 Aug 2016 11:20:03 +0000 (12:20 +0100)
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 <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-pxa2xx-pci.c

index f3df522db93bac9fec31dc5f27ebcdddda57c87a..58d2d48e16a530869528288d50f3a6581c3ea311 100644 (file)
@@ -214,6 +214,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;
This page took 0.048452 seconds and 4 git commands to generate.