[PARISC] Add dummy isa_(bus|virt)_to_(virt|bus) inlines
authorKyle McMartin <kyle@parisc-linux.org>
Fri, 29 Jun 2007 06:21:03 +0000 (02:21 -0400)
committerKyle McMartin <kyle@minerva.i.cabal.ca>
Mon, 27 Aug 2007 04:29:22 +0000 (00:29 -0400)
Less painful than fixing up the Kconfig for a pile of drivers to only build
on X86 && ARM && MIPS...

Just make them BUG(), as defining them to be 1:1 with physical memory will
likely HPMC the box anyways.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
include/asm-parisc/io.h

index c0fed91da3a22a86f987bfe134405c620a429b4b..4cc9bcec0564389bd33b69a136f66a24f4bafd96 100644 (file)
@@ -15,6 +15,16 @@ extern unsigned long parisc_vmerge_max_size;
 #define virt_to_bus virt_to_phys
 #define bus_to_virt phys_to_virt
 
+static inline unsigned long isa_bus_to_virt(unsigned long addr) {
+       BUG();
+       return 0;
+}
+
+static inline unsigned long isa_virt_to_bus(void *addr) {
+       BUG();
+       return 0;
+}
+
 /*
  * Memory mapped I/O
  *