Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d64ec15 authored by Jean Delvare's avatar Jean Delvare Committed by Linus Torvalds
Browse files

[PATCH] vr41xx: ARRAY_SIZE cleanup



No need to define RTC_NUM_RESOURCES, it doesn't add any value to the code.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fe971071
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -127,8 +127,6 @@ struct resource rtc_resource[2] = {
		.flags	= IORESOURCE_MEM,	},
};

#define RTC_NUM_RESOURCES	ARRAY_SIZE(rtc_resource)

static inline unsigned long read_elapsed_second(void)
{
	unsigned long first_low, first_mid, first_high;
@@ -686,7 +684,8 @@ static int __devinit vr41xx_rtc_init(void)
		break;
	}

	rtc_platform_device = platform_device_register_simple("RTC", -1, rtc_resource, RTC_NUM_RESOURCES);
	rtc_platform_device = platform_device_register_simple("RTC", -1,
			      rtc_resource, ARRAY_SIZE(rtc_resource));
	if (IS_ERR(rtc_platform_device))
		return PTR_ERR(rtc_platform_device);