diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc64/kernel/pci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index 9b808640a193..63b3ebc0c3c2 100644 --- a/arch/sparc64/kernel/pci.c +++ b/arch/sparc64/kernel/pci.c | |||
@@ -207,8 +207,7 @@ static struct { | |||
207 | { "SUNW,sun4v-pci", sun4v_pci_init }, | 207 | { "SUNW,sun4v-pci", sun4v_pci_init }, |
208 | { "pciex108e,80f0", fire_pci_init }, | 208 | { "pciex108e,80f0", fire_pci_init }, |
209 | }; | 209 | }; |
210 | #define PCI_NUM_CONTROLLER_TYPES (sizeof(pci_controller_table) / \ | 210 | #define PCI_NUM_CONTROLLER_TYPES ARRAY_SIZE(pci_controller_table) |
211 | sizeof(pci_controller_table[0])) | ||
212 | 211 | ||
213 | static int __init pci_controller_init(const char *model_name, int namelen, struct device_node *dp) | 212 | static int __init pci_controller_init(const char *model_name, int namelen, struct device_node *dp) |
214 | { | 213 | { |