Message ID | 20181019123002.196D21122548@debutante.sirena.org.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Applied "spi: pxa2xx: fix PCI dependency" to the spi tree | expand |
On Fri, Oct 19, 2018 at 01:30:02PM +0100, Mark Brown wrote: > The patch > > spi: pxa2xx: fix PCI dependency > > has been applied to the spi tree at > > https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git Sorry, I'll drop this one - I forgot it had already been applied when it was pointed out that the stub function was added.
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index 612cc49db28f..c1c30109dd1f 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1453,9 +1453,11 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev) if (pdev->dev.of_node) of_id = of_match_device(pdev->dev.driver->of_match_table, &pdev->dev); +#ifdef CONFIG_PCI else if (dev_is_pci(pdev->dev.parent)) pcidev_id = pci_match_id(pxa2xx_spi_pci_compound_match, to_pci_dev(pdev->dev.parent)); +#endif else if (adev) adev_id = acpi_match_device(pdev->dev.driver->acpi_match_table, &pdev->dev);