ARM: mmp: add platform_device head file in gplugd
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 15 Mar 2013 08:27:53 +0000 (16:27 +0800)
committerHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 15 Mar 2013 08:27:53 +0000 (16:27 +0800)
arch/arm/mach-mmp/gplugd.c: In function ‘gplugd_init’:
arch/arm/mach-mmp/gplugd.c:188:2: error: implicit declaration of
function ‘platform_device_register’
[-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[1]: *** [arch/arm/mach-mmp/gplugd.o] Error 1
make: *** [arch/arm/mach-mmp] Error 2

So append platform_device.h to resolve build issue.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
arch/arm/mach-mmp/gplugd.c

index d1e2d595e79cafd44b737d49904b07b65042d3fa..f62b68d926f4237bf70911ba43487d27c98d4e97 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <linux/init.h>
+#include <linux/platform_device.h>
 #include <linux/gpio.h>
 
 #include <asm/mach/arch.h>