Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17679
b: refs/heads/master
c: 1d64ec1
h: refs/heads/master
i:
  17677: 6481c41
  17675: e45d5ed
  17671: 586ed92
  17663: 5ac8c4b
v: v3
  • Loading branch information
Jean Delvare authored and Linus Torvalds committed Jan 10, 2006
1 parent 5aa97dc commit 365a662
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fe971071a89c5c5184fc9f3482c7a8e997cf0520
refs/heads/master: 1d64ec153e914cbd60cfaaa47ececed55a9d14d7
5 changes: 2 additions & 3 deletions trunk/drivers/char/vr41xx_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 365a662

Please sign in to comment.