1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#ifndef __OF_PCI_H #define __OF_PCI_H #include <linux/pci.h> #ifdef CONFIG_OF_PCI int of_pci_get_devfn(struct device_node *np); #else static inline int of_pci_get_devfn(struct device_node *np) { return -EINVAL; } #endif #endif