projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6cedb3
)
au1xmmc: Replace C code with call to ARRAY_SIZE() macro.
author
Robert P. J. Day
<rpjday@mindspring.com>
Wed, 6 Jun 2007 18:19:34 +0000
(20:19 +0200)
committer
Pierre Ossman
<drzeus@drzeus.cx>
Thu, 7 Jun 2007 07:25:51 +0000
(09:25 +0200)
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/host/au1xmmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/host/au1xmmc.c
b/drivers/mmc/host/au1xmmc.c
index f967226d7505fcc5ac49961241e8116aca8acbee..52b63f11ddd6498000003049ce95f67306e80ab7 100644
(file)
--- a/
drivers/mmc/host/au1xmmc.c
+++ b/
drivers/mmc/host/au1xmmc.c
@@
-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];