Skip to content

Commit

Permalink
rtc: rtc-ds1553.c should use resource_size_t for base address
Browse files Browse the repository at this point in the history
Currently the rtc driver, rtc-ds1552.c uses an unsigned long to store the
base mmio address of the NVRAM/RTC.  This breaks on 32-bit systems with
larger physical addresses.

Signed-off-by: Atsushi Nemoto <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Alessandro Zummo <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
atsushi-nemoto authored and Linus Torvalds committed Sep 19, 2007
1 parent 2e3e31c commit 49cc886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-ds1553.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
struct rtc_plat_data {
struct rtc_device *rtc;
void __iomem *ioaddr;
unsigned long baseaddr;
resource_size_t baseaddr;
unsigned long last_jiffies;
int irq;
unsigned int irqen;
Expand Down

0 comments on commit 49cc886

Please sign in to comment.