diff options
Diffstat (limited to 'arch/arm/include/asm/mach/pci.h')
-rw-r--r-- | arch/arm/include/asm/mach/pci.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/include/asm/mach/pci.h b/arch/arm/include/asm/mach/pci.h index 7d2c3c843801..038d657e5c24 100644 --- a/arch/arm/include/asm/mach/pci.h +++ b/arch/arm/include/asm/mach/pci.h | |||
@@ -16,6 +16,7 @@ | |||
16 | struct pci_sys_data; | 16 | struct pci_sys_data; |
17 | struct pci_ops; | 17 | struct pci_ops; |
18 | struct pci_bus; | 18 | struct pci_bus; |
19 | struct device; | ||
19 | 20 | ||
20 | struct hw_pci { | 21 | struct hw_pci { |
21 | #ifdef CONFIG_PCI_DOMAINS | 22 | #ifdef CONFIG_PCI_DOMAINS |
@@ -68,7 +69,16 @@ struct pci_sys_data { | |||
68 | /* | 69 | /* |
69 | * Call this with your hw_pci struct to initialise the PCI system. | 70 | * Call this with your hw_pci struct to initialise the PCI system. |
70 | */ | 71 | */ |
71 | void pci_common_init(struct hw_pci *); | 72 | void pci_common_init_dev(struct device *, struct hw_pci *); |
73 | |||
74 | /* | ||
75 | * Compatibility wrapper for older platforms that do not care about | ||
76 | * passing the parent device. | ||
77 | */ | ||
78 | static inline void pci_common_init(struct hw_pci *hw) | ||
79 | { | ||
80 | pci_common_init_dev(NULL, hw); | ||
81 | } | ||
72 | 82 | ||
73 | /* | 83 | /* |
74 | * Setup early fixed I/O mapping. | 84 | * Setup early fixed I/O mapping. |