Skip to content

Commit

Permalink
au1xmmc: Replace C code with call to ARRAY_SIZE() macro.
Browse files Browse the repository at this point in the history
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
  • Loading branch information
Robert P. J. Day authored and Pierre Ossman committed Jun 7, 2007
1 parent b6cedb3 commit 60da8de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/mmc/host/au1xmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ const struct {
#endif
};

#define AU1XMMC_CONTROLLER_COUNT \
(sizeof(au1xmmc_card_table) / sizeof(au1xmmc_card_table[0]))
#define AU1XMMC_CONTROLLER_COUNT (ARRAY_SIZE(au1xmmc_card_table))

/* This array stores pointers for the hosts (used by the IRQ handler) */
struct au1xmmc_host *au1xmmc_hosts[AU1XMMC_CONTROLLER_COUNT];
Expand Down

0 comments on commit 60da8de

Please sign in to comment.