Commit 9f9d27e3 authored by Dmitry Artamonow's avatar Dmitry Artamonow Committed by Haojian Zhuang

arm/sa1100: fix sa1100-rtc memory resource

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: default avatarDmitry Artamonow <mad_soft@inbox.ru>
Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
parent b95ace54
...@@ -306,7 +306,7 @@ void sa11x0_register_irda(struct irda_platform_data *irda) ...@@ -306,7 +306,7 @@ void sa11x0_register_irda(struct irda_platform_data *irda)
} }
static struct resource sa1100_rtc_resources[] = { 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_RTC1Hz, "rtc 1Hz"),
DEFINE_RES_IRQ_NAMED(IRQ_RTCAlrm, "rtc alarm"), DEFINE_RES_IRQ_NAMED(IRQ_RTCAlrm, "rtc alarm"),
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment