From: Arnd Bergmann Date: Thu, 14 Feb 2013 22:26:50 +0000 (+0100) Subject: ARM: sa1100/assabet: include platform_device.h directly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7f206d499ab5ce4db766efd9a4335572d9082911;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: sa1100/assabet: include platform_device.h directly Patch "16559ae kgdb: remove #include from kgdb.h caused assabet_defconfig to fail, since assabet.c did not itself include linux/platform_device.h, although it needs it: In file included from include/linux/mfd/ucb1x00.h:13:0, from arch/arm/mach-sa1100/assabet.c:19: include/linux/mfd/mcp.h:22:16: error: field 'attached_device' has incomplete type include/linux/mfd/mcp.h:48:23: error: field 'drv' has incomplete type In file included from arch/arm/mach-sa1100/assabet.c:19:0: include/linux/mfd/ucb1x00.h:137:16: error: field 'dev' has incomplete type arch/arm/mach-sa1100/assabet.c: In function 'assabet_init': arch/arm/mach-sa1100/assabet.c:343:3: error: implicit declaration of function 'platform_device_register_simple' [-Wimplicit-function-declaration] Signed-off-by: Arnd Bergmann Cc: Russell King Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/arm/mach-sa1100/assabet.c b/arch/arm/mach-sa1100/assabet.c index 9a23739f7026..442497363db9 100644 --- a/arch/arm/mach-sa1100/assabet.c +++ b/arch/arm/mach-sa1100/assabet.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include