Patchwork ARM: mmp: add platform_device head file in gplugd

login
register
mail settings
Submitter Haojian Zhuang
Date March 15, 2013, 8:30 a.m.
Message ID <1363336226-23175-1-git-send-email-haojian.zhuang@linaro.org>
Download mbox | patch
Permalink /patch/227879/
State New
Headers show

Comments

Haojian Zhuang - March 15, 2013, 8:30 a.m.
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 |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/arch/arm/mach-mmp/gplugd.c b/arch/arm/mach-mmp/gplugd.c
index d1e2d59..f62b68d 100644
--- a/arch/arm/mach-mmp/gplugd.c
+++ b/arch/arm/mach-mmp/gplugd.c
@@ -9,6 +9,7 @@ 
  */
 
 #include <linux/init.h>
+#include <linux/platform_device.h>
 #include <linux/gpio.h>
 
 #include <asm/mach/arch.h>