From e5c3f79a32c94bc347722331898bf9fc996d6cfd Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Ruiz Date: Mon, 22 Oct 2007 17:24:19 -0700 Subject: [PATCH] --- yaml --- r: 72110 b: refs/heads/master c: 29f139ce27c7e64a3e8575afa8deb46cde09db0a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/sparc64/kernel/pci.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 36279c7867f2..3f7bcd9cebe4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1d3e07f7d0f97321121849fc064fb293b83db9ef +refs/heads/master: 29f139ce27c7e64a3e8575afa8deb46cde09db0a diff --git a/trunk/arch/sparc64/kernel/pci.c b/trunk/arch/sparc64/kernel/pci.c index 9b808640a193..63b3ebc0c3c2 100644 --- a/trunk/arch/sparc64/kernel/pci.c +++ b/trunk/arch/sparc64/kernel/pci.c @@ -207,8 +207,7 @@ static struct { { "SUNW,sun4v-pci", sun4v_pci_init }, { "pciex108e,80f0", fire_pci_init }, }; -#define PCI_NUM_CONTROLLER_TYPES (sizeof(pci_controller_table) / \ - sizeof(pci_controller_table[0])) +#define PCI_NUM_CONTROLLER_TYPES ARRAY_SIZE(pci_controller_table) static int __init pci_controller_init(const char *model_name, int namelen, struct device_node *dp) {