From: Alejandro Martinez Ruiz Date: Tue, 23 Oct 2007 00:24:19 +0000 (-0700) Subject: [SPARC64]: ARRAY_SIZE() cleanup X-Git-Tag: v2.6.24-rc1~61^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29f139ce27c7e64a3e8575afa8deb46cde09db0a;p=platform%2Fkernel%2Flinux-3.10.git [SPARC64]: ARRAY_SIZE() cleanup Signed-off-by: Alejandro Martinez Ruiz Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/pci.c b/arch/sparc64/kernel/pci.c index 9b80864..63b3ebc 100644 --- a/arch/sparc64/kernel/pci.c +++ b/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) {