aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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