[POWERPC] powerpc: fix build error in rom.c
authorGeoff Levand <geoffrey.levand@am.sony.com>
Tue, 5 Dec 2006 23:30:17 +0000 (15:30 -0800)
committerPaul Mackerras <paulus@samba.org>
Fri, 8 Dec 2006 04:55:55 +0000 (15:55 +1100)
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 <geoffrey.levand@am.sony.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/sysdev/rom.c

index bf5b3f1..c855a3b 100644 (file)
@@ -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)
 {