Skip to content

Commit 5b9e00a

Browse files
committed
powerpc/4xx: Fix warp_gpio_leds build failure
The 44x/warp_defconfig build fails with: arch/powerpc/platforms/44x/warp.c:109:15: error: variable ‘warp_gpio_leds’ has initializer but incomplete type 109 | static struct platform_device warp_gpio_leds = { | ^~~~~~~~~~~~~~~ Fix it by including platform_device.h. Fixes: ef175b2 ("of: Stop circularly including of_device.h and of_platform.h") Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240305123410.3306253-3-mpe@ellerman.id.au
1 parent e8b1ce0 commit 5b9e00a

File tree

1 file changed

+1
-0
lines changed
  • arch/powerpc/platforms/44x

1 file changed

+1
-0
lines changed

arch/powerpc/platforms/44x/warp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include <linux/err.h>
99
#include <linux/init.h>
1010
#include <linux/of_platform.h>
11+
#include <linux/platform_device.h>
1112
#include <linux/kthread.h>
1213
#include <linux/leds.h>
1314
#include <linux/i2c.h>

0 commit comments

Comments
 (0)