s390 doesn't have ioremap_*, so protect the definition of the new
pci_ioremap_bar function with CONFIG_HAS_IOMEM to avoid build breakage.
Acked-by: Arjan van de Ven <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Jesse Barnes <[email protected]>
static inline void pci_mmcfg_late_init(void) { }
#endif
+#ifdef CONFIG_HAS_IOMEM
static inline void * pci_ioremap_bar(struct pci_dev *pdev, int bar)
{
/*
return ioremap_nocache(pci_resource_start(pdev, bar),
pci_resource_len(pdev, bar));
}
+#endif
#endif /* __KERNEL__ */
#endif /* LINUX_PCI_H */