]> Pileus Git - ~andy/linux/blobdiff - include/asm-generic/iomap.h
Merge branch 'for-3.1/drivers' of git://git.kernel.dk/linux-block
[~andy/linux] / include / asm-generic / iomap.h
index c74ef2c6e633a95dd9b94f34ba418ea6f18091c1..98dcd76ce836db71243b031a2bdfc301627d7a03 100644 (file)
@@ -71,6 +71,14 @@ extern void ioport_unmap(void __iomem *);
 struct pci_dev;
 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max);
 extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
+#else
+struct pci_dev;
+static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max)
+{
+       return NULL;
+}
+static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
+{ }
 #endif
 
 #endif