Skip to content

Commit

Permalink
[SPARC64]: ARRAY_SIZE() cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Alejandro Martinez Ruiz authored and David S. Miller committed Oct 23, 2007
1 parent 1d3e07f commit 29f139c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/sparc64/kernel/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 29f139c

Please sign in to comment.