aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2006-01-09 23:54:03 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:01:56 -0500
commit1d64ec153e914cbd60cfaaa47ececed55a9d14d7 (patch)
tree372e6813c0b259ca13f379def799892257b397b6 /drivers
parentfe971071a89c5c5184fc9f3482c7a8e997cf0520 (diff)
[PATCH] vr41xx: ARRAY_SIZE cleanup
No need to define RTC_NUM_RESOURCES, it doesn't add any value to the code. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/vr41xx_rtc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/char/vr41xx_rtc.c b/drivers/char/vr41xx_rtc.c
index 05a3e3743c1d..159acd8b7788 100644
--- a/drivers/char/vr41xx_rtc.c
+++ b/drivers/char/vr41xx_rtc.c
@@ -127,8 +127,6 @@ struct resource rtc_resource[2] = {
127 .flags = IORESOURCE_MEM, }, 127 .flags = IORESOURCE_MEM, },
128}; 128};
129 129
130#define RTC_NUM_RESOURCES ARRAY_SIZE(rtc_resource)
131
132static inline unsigned long read_elapsed_second(void) 130static inline unsigned long read_elapsed_second(void)
133{ 131{
134 unsigned long first_low, first_mid, first_high; 132 unsigned long first_low, first_mid, first_high;
@@ -686,7 +684,8 @@ static int __devinit vr41xx_rtc_init(void)
686 break; 684 break;
687 } 685 }
688 686
689 rtc_platform_device = platform_device_register_simple("RTC", -1, rtc_resource, RTC_NUM_RESOURCES); 687 rtc_platform_device = platform_device_register_simple("RTC", -1,
688 rtc_resource, ARRAY_SIZE(rtc_resource));
690 if (IS_ERR(rtc_platform_device)) 689 if (IS_ERR(rtc_platform_device))
691 return PTR_ERR(rtc_platform_device); 690 return PTR_ERR(rtc_platform_device);
692 691