powerpc/4xx: Fix warp_gpio_leds build failure
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Mar 2024 12:34:10 +0000 (23:34 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 6 Mar 2024 13:13:28 +0000 (00:13 +1100)
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: ef175b29a242 ("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
arch/powerpc/platforms/44x/warp.c

index bf0188dcb9184d2fdeb694d7eaca3bc22394483b..a5001d32f978d72e11183739f77462b5904cdb27 100644 (file)
@@ -8,6 +8,7 @@
 #include <linux/err.h>
 #include <linux/init.h>
 #include <linux/of_platform.h>
+#include <linux/platform_device.h>
 #include <linux/kthread.h>
 #include <linux/leds.h>
 #include <linux/i2c.h>