Message ID | 20110718095557.cd70fa01.rdunlap@xenotime.net |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
--- linux-next-20110718.orig/include/asm-generic/iomap.h +++ linux-next-20110718/include/asm-generic/iomap.h @@ -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