Skip to contentSkip to conversation

powerpc: fix build error in rom.c

PATCH In review Geoff Levand 2 participants 2 messages Dec 5, 2006 – Dec 6, 2006 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: fix build error in rom.c

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

---
 arch/powerpc/sysdev/rom.c |    1 +
 1 files changed, 1 insertion(+)
arch/powerpc/sysdev/rom.c +1 -0
@@ -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)
 {
#1 lore raw

Hello.

Quoted 3 lines · Geoff Levand

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 9 lines
---
 arch/powerpc/sysdev/rom.c |    1 +
 1 files changed, 1 insertion(+)

arch/powerpc/sysdev/rom.c line 15

Quoted 7 lines
arch/powerpc/sysdev/rom.c +1 -0
@@ -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