Просмотр исходного кода

PCI: Add stub function for devm_pci_remap_cfg_resource

Add stub function for devm_pci_remap_cfg_resource when CONFIG_PCI is
not enabled.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Kishon Vijay Abraham I 6 лет назад
Родитель
Сommit
ce8f529b1c
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      include/linux/pci.h

+ 6 - 0
include/linux/pci.h

@@ -1705,6 +1705,12 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d,
 				      unsigned long *out_hwirq,
 				      unsigned int *out_type)
 { return -EINVAL; }
+
+static inline void __iomem *devm_pci_remap_cfg_resource(struct device *dev,
+							struct resource *res)
+{
+	return NULL;
+}
 #endif /* CONFIG_PCI */
 
 /* Include architecture-dependent settings and functions */