aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/vr41xx_rtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/vr41xx_rtc.c')
-rw-r--r--drivers/char/vr41xx_rtc.c2
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
132static inline unsigned long read_elapsed_second(void) 132static inline unsigned long read_elapsed_second(void)
133{ 133{