Skip to contentSkip to conversation

microblaze: Add missing header to prom.h

PATCH New Michal Simek 1 participant 1 message Aug 6, 2010 Microblaze architecture

lore
Share & tools
lore

Michal Simek

author maintainer
#0 lore raw

PATCH 1/1 microblaze: Add missing header to prom.h

of_serial and physmap_of require of_address_to_resource.

CC drivers/serial/of_serial.o
drivers/serial/of_serial.c: In function 'of_platform_serial_setup':
drivers/serial/of_serial.c:47: error: implicit declaration of function 'of_address_to_resource' make[5]: *** [drivers/serial/of_serial.o] Error 1

CC drivers/mtd/maps/physmap_of.o
drivers/mtd/maps/physmap_of.c: In function 'of_flash_probe':
drivers/mtd/maps/physmap_of.c:268: error: implicit declaration of function 'of_address_to_resource' make[6]: *** [drivers/mtd/maps/physmap_of.o] Error 1
make[5]: *** [drivers/mtd/maps] Error 2
make[4]: *** [drivers/mtd] Error 2
make[3]: *** [drivers] Error 2

---
 arch/microblaze/include/asm/prom.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/microblaze/include/asm/prom.h +1 -0
index 101fa09..5012b22 100644
@@ -22,6 +22,7 @@
 #include <linux/types.h>
 #include <asm/irq.h>
 #include <asm/atomic.h>
+#include <linux/of_address.h>
 
 #define HAVE_ARCH_DEVTREE_FIXUPS
 
Signature · 1 line
1.5.5.6