diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-01-09 23:54:02 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-10 11:01:56 -0500 |
commit | fe971071a89c5c5184fc9f3482c7a8e997cf0520 (patch) | |
tree | 74a29e80d5636255f33c750482497a32d8d3491f /drivers/char/vr41xx_rtc.c | |
parent | 3c6bee1d4037a5c569f30d40bd852a57ba250912 (diff) |
[PATCH] drivers/char: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove
duplicates of ARRAY_SIZE.
Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/vr41xx_rtc.c')
-rw-r--r-- | drivers/char/vr41xx_rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/vr41xx_rtc.c b/drivers/char/vr41xx_rtc.c index 435b30748e23..05a3e3743c1d 100644 --- a/drivers/char/vr41xx_rtc.c +++ b/drivers/char/vr41xx_rtc.c | |||
@@ -127,7 +127,7 @@ struct resource rtc_resource[2] = { | |||
127 | .flags = IORESOURCE_MEM, }, | 127 | .flags = IORESOURCE_MEM, }, |
128 | }; | 128 | }; |
129 | 129 | ||
130 | #define RTC_NUM_RESOURCES sizeof(rtc_resource) / sizeof(struct resource) | 130 | #define RTC_NUM_RESOURCES ARRAY_SIZE(rtc_resource) |
131 | 131 | ||
132 | static inline unsigned long read_elapsed_second(void) | 132 | static inline unsigned long read_elapsed_second(void) |
133 | { | 133 | { |