spi: pxa2xx: fix PCI dependency
Subsystems (3)
PATCH 1/1 spi: pxa2xx: fix PCI dependency
The code reorganization broke building without CONFIG_PCI:
drivers/spi/spi-pxa2xx.c: In function 'pxa2xx_spi_init_pdata':drivers/spi/spi-pxa2xx.c:1457:15: error: implicit declaration of function 'pci_match_id'; did you mean 'pci_map_sg'? [-Werror=implicit-function-declaration]
Add back an #ifdef around the code block that requires it.
--- drivers/spi/spi-pxa2xx.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/spi/spi-pxa2xx.c +2 -0
@@ -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);
Signature · 1 line
2.18.0
Hi Arnd,
Quoted 9 lines · Arnd Bergmann
The code reorganization broke building without
CONFIG_PCI:
drivers/spi/spi-pxa2xx.c: In function 'pxa2xx_spi_init_pdata':drivers/spi/spi-pxa2xx.c:1457:15: error: implicit declaration of function 'pci_match_id'; did you mean 'pci_map_sg'? [-Werror=implicit-function-declaration]Add back an #ifdef around the code block that requires it.
Fixes 87ae1d2d7077 ("spi: pxa2xx: Add devicetree support")Signed-off-by Arnd Bergmann <[email protected]>
Already fixed in spi-next by commit 9c2120090586d7e5 ("PCI: Provide pci_match_id() with CONFIG_PCI=n").
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsMark Brown
maintainerApplied "spi: pxa2xx: fix PCI dependency" to the spi tree
In reply to Arnd BergmannThe 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
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
23aa9fdea2d364924fadf3dcc1509bd578ac1f00Mon Sep 17 00:00:00 2001
From: Arnd Bergmann <[email protected]>
Date: Wed, 17 Oct 2018 20:50:52 +0200
Subject: [PATCH] spi: pxa2xx: fix PCI dependency
The code reorganization broke building without CONFIG_PCI:
drivers/spi/spi-pxa2xx.c: In function 'pxa2xx_spi_init_pdata':drivers/spi/spi-pxa2xx.c:1457:15: error: implicit declaration of function 'pci_match_id'; did you mean 'pci_map_sg'? [-Werror=implicit-function-declaration]
Add back an #ifdef around the code block that requires it.
--- drivers/spi/spi-pxa2xx.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/spi/spi-pxa2xx.c +2 -0
@@ -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);
Signature · 1 line
2.19.0.rc2
Mark Brown
maintainerRe: Applied "spi: pxa2xx: fix PCI dependency" to the spi tree
Quoted 7 lines · Mark Brown
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20181019/30bf2a94/attachment.sig>