Commit 60da8de6 authored by Robert P. J. Day's avatar Robert P. J. Day Committed by Pierre Ossman

au1xmmc: Replace C code with call to ARRAY_SIZE() macro.

Signed-off-by: default avatarRobert P. J. Day <rpjday@mindspring.com>
Signed-off-by: default avatarPierre Ossman <drzeus@drzeus.cx>
parent b6cedb38
...@@ -76,8 +76,7 @@ const struct { ...@@ -76,8 +76,7 @@ const struct {
#endif #endif
}; };
#define AU1XMMC_CONTROLLER_COUNT \ #define AU1XMMC_CONTROLLER_COUNT (ARRAY_SIZE(au1xmmc_card_table))
(sizeof(au1xmmc_card_table) / sizeof(au1xmmc_card_table[0]))
/* This array stores pointers for the hosts (used by the IRQ handler) */ /* This array stores pointers for the hosts (used by the IRQ handler) */
struct au1xmmc_host *au1xmmc_hosts[AU1XMMC_CONTROLLER_COUNT]; struct au1xmmc_host *au1xmmc_hosts[AU1XMMC_CONTROLLER_COUNT];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment