au1xmmc: Replace C code with call to ARRAY_SIZE() macro.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
This commit is contained in:
Родитель
b6cedb3861
Коммит
60da8de671
|
@ -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];
|
||||
|
|
Загрузка…
Ссылка в новой задаче