projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d3e07f
)
[SPARC64]: ARRAY_SIZE() cleanup
author
Alejandro Martinez Ruiz
<alex@flawedcode.org>
Tue, 23 Oct 2007 00:24:19 +0000
(17:24 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 23 Oct 2007 00:24:19 +0000
(17:24 -0700)
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/pci.c
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/pci.c
b/arch/sparc64/kernel/pci.c
index 9b808640a193d5c941cbb2dd16e4ec5bbffb465a..63b3ebc0c3c209fef14c8d8cc9f6e6d8bf276e82 100644
(file)
--- 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)
{