Skip to content

Commit 52c9a88

Browse files
rddunlapbroonie
authored andcommitted
spi: mpc52xx: explicitly include linux/platform_device.h
Since linux/of_platform.h had included linux/platform_device.h and since that inclusion was removed, this driver now needs to include the latter header file explicitly to prevent build errors: drivers/spi/spi-mpc52xx.c: In function 'mpc52xx_spi_probe': drivers/spi/spi-mpc52xx.c:396:20: error: invalid use of undefined type 'struct platform_device' and more like that. Fixes: 0d18bcd ("of: Stop circularly including of_device.h and of_platform.h") Signed-off-by: Randy Dunlap <[email protected]> Cc: Rob Herring <[email protected]> Cc: Mark Brown <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 88a50c1 commit 52c9a88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi-mpc52xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/slab.h>
2323
#include <linux/of_address.h>
2424
#include <linux/of_irq.h>
25+
#include <linux/platform_device.h>
2526

2627
#include <asm/time.h>
2728
#include <asm/mpc52xx.h>

0 commit comments

Comments
 (0)