Skip to content

Commit

Permalink
arm/sa1100: fix sa1100-rtc memory resource
Browse files Browse the repository at this point in the history
DEFINE_RES_MEM() takes the size of resource as a second argument,
not the end address. Passing end address leads to following error
in runtime during device registration:
sa1100-rtc: failed to claim resource 0

Fix it.

Signed-off-by: Dmitry Artamonow <mad_soft@inbox.ru>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
  • Loading branch information
Dmitry Artamonow authored and Haojian Zhuang committed Apr 27, 2012
1 parent b95ace5 commit 9f9d27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-sa1100/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ void sa11x0_register_irda(struct irda_platform_data *irda)
}

static struct resource sa1100_rtc_resources[] = {
DEFINE_RES_MEM(0x90010000, 0x9001003f),
DEFINE_RES_MEM(0x90010000, 0x40),
DEFINE_RES_IRQ_NAMED(IRQ_RTC1Hz, "rtc 1Hz"),
DEFINE_RES_IRQ_NAMED(IRQ_RTCAlrm, "rtc alarm"),
};
Expand Down

0 comments on commit 9f9d27e

Please sign in to comment.