Skip to content

Commit 9f208e0

Browse files
chunkeeybroonie
authored andcommitted
spi: spi-ppc4xx: include missing platform_device.h
the driver currently fails to compile on 6.8-rc3 due to: | spi-ppc4xx.c: In function ‘spi_ppc4xx_of_probe’: | @346:36: error: invalid use of undefined type ‘struct platform_device’ | 346 | struct device_node *np = op->dev.of_node; | | ^~ | ... (more similar errors) it was working with 6.7. Looks like it only needed the include and its compiling fine! Signed-off-by: Christian Lamparter <[email protected]> Link: https://lore.kernel.org/r/3eb3f9c4407ba99d1cd275662081e46b9e839173.1707490664.git.chunkeey@gmail.com Signed-off-by: Mark Brown <[email protected]>
1 parent c712c05 commit 9f208e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi-ppc4xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/slab.h>
2626
#include <linux/errno.h>
2727
#include <linux/wait.h>
28+
#include <linux/platform_device.h>
2829
#include <linux/of_address.h>
2930
#include <linux/of_irq.h>
3031
#include <linux/of_platform.h>

0 commit comments

Comments
 (0)