spi: pxa2xx: Fix build error because of missing header
Subsystems (3)
PATCH 1/1 spi: pxa2xx: Fix build error because of missing header
From: Mika Westerberg <[email protected]>
commit 089bd46d8bc1fe5a28351e82e4adcaa5a40121b5 upstream.
Kbuild test robot reports:
drivers/spi/spi-pxa2xx.c: In function ?setup_cs?:
drivers/spi/spi-pxa2xx.c:1190:20: error: implicit declaration of function ?desc_to_gpio?
...
Reason for this is the fact that those functions are declared in linux/gpio/consumer.h which is not included in the driver. Fix this by including it.
---
This fixes a build regression for some configurations since I applied the backport of commit 3d3bc50700ba "spi: pxa2xx: Add support for GPIO descriptor chip selects".
Ben.
drivers/spi/spi-pxa2xx.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-pxa2xx.c +1 -0
@@ -28,6 +28,7 @@#include <linux/spi/spi.h> #include <linux/delay.h> #include <linux/gpio.h> +#include <linux/gpio/consumer.h> #include <linux/slab.h> #include <linux/clk.h> #include <linux/pm_runtime.h>
Signature · 3 lines
Ben Hutchings, Software Developer Codethink Ltd
https://www.codethink.co.uk/ Dale House, 35 Dale Street
Manchester, M1 2HF, United KingdomPavel Machek
AppliedPATCH 1/1 spi: pxa2xx: Fix build error because of missing header
Quoted 6 lines · Ben Hutchings
From: Mika Westerberg <[email protected]>
commit
089bd46d8bc1fe5a28351e82e4adcaa5a40121b5upstream.
Kbuildtest robot reports:
Quoted 7 lines
drivers/spi/spi-pxa2xx.c: In function ?setup_cs?:
drivers/spi/spi-pxa2xx.c:1190:20: error: implicit declaration of function ?desc_to_gpio?
...Reason for this is the fact that those functions are declared in
linux/gpio/consumer.hwhich is not included in the driver. Fix this by including it.
Thanks, applied.
Pavel
Signature · 9 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 181 bytes Desc: Digital signature URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20190625/f1c95d57/attachment.sig>