Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Robert P. J. Day and committed by
Pierre Ossman
60da8de6 b6cedb38

+1 -2
+1 -2
drivers/mmc/host/au1xmmc.c
··· 76 76 #endif 77 77 }; 78 78 79 - #define AU1XMMC_CONTROLLER_COUNT \ 80 - (sizeof(au1xmmc_card_table) / sizeof(au1xmmc_card_table[0])) 79 + #define AU1XMMC_CONTROLLER_COUNT (ARRAY_SIZE(au1xmmc_card_table)) 81 80 82 81 /* This array stores pointers for the hosts (used by the IRQ handler) */ 83 82 struct au1xmmc_host *au1xmmc_hosts[AU1XMMC_CONTROLLER_COUNT];