[PATCH] powerpc: fix build error in rom.c

STALE7218d

2 messages, 2 authors, 2006-12-06 · open the first message on its own page

[PATCH] powerpc: fix build error in rom.c

From: Geoff Levand <hidden>
Date: 2006-12-05 23:30:26

Add missing include in rom.c.  Fixes this build error when CONFIG_MTD=y:

  arch/powerpc/sysdev/rom.c:26: error: implicit declaration of function of_platform_device_create

Signed-off-by: Geoff Levand <redacted>

---
 arch/powerpc/sysdev/rom.c |    1 +
 1 files changed, 1 insertion(+)
--- linux-2.6.19.ppc64.orig/arch/powerpc/sysdev/rom.c
+++ linux-2.6.19.ppc64/arch/powerpc/sysdev/rom.c
@@ -9,6 +9,7 @@
 
 #include <linux/kernel.h>
 #include <asm/of_device.h>
+#include <asm/of_platform.h>
 
 static int __init powerpc_flash_init(void)
 {

Re: [PATCH] powerpc: fix build error in rom.c

From: Sergei Shtylyov <hidden>
Date: 2006-12-06 12:19:30

Hello.

Geoff Levand wrote:
Add missing include in rom.c.  Fixes this build error when CONFIG_MTD=y:
  arch/powerpc/sysdev/rom.c:26: error: implicit declaration of function of_platform_device_create
    Uh oh, that's what happens when someone doesn't respin the patches quickly 
enough. Finally, the obsolete version has been committed -- it also misses one 
property in the node spec and "reg" was called "regs" there...
quoted hunk
Signed-off-by: Geoff Levand <redacted>

---
 arch/powerpc/sysdev/rom.c |    1 +
 1 files changed, 1 insertion(+)
--- linux-2.6.19.ppc64.orig/arch/powerpc/sysdev/rom.c
+++ linux-2.6.19.ppc64/arch/powerpc/sysdev/rom.c
@@ -9,6 +9,7 @@
 
 #include <linux/kernel.h>
 #include <asm/of_device.h>
+#include <asm/of_platform.h>
 
 static int __init powerpc_flash_init(void)
 {
WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help