projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ccb7d7
)
rtc: s5m: fix unsuccesful IRQ request during probe
author
Krzysztof Kozlowski
<
[email protected]
>
Fri, 13 Dec 2013 01:12:26 +0000
(17:12 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 13 Dec 2013 02:19:26 +0000
(18:19 -0800)
Probe failed for rtc-s5m:
s5m-rtc s5m-rtc: Failed to request alarm IRQ: 12: -22
s5m-rtc: probe of s5m-rtc failed with error -22
Fix rtc-s5m interrupt request by using regmap_irq_get_virq() for mapping
the IRQ.
Signed-off-by: Krzysztof Kozlowski <
[email protected]
>
Signed-off-by: Kyungmin Park <
[email protected]
>
Reviewed-by: Mark Brown <
[email protected]
>
Acked-by: Sangbeom Kim <
[email protected]
>
Cc: Samuel Ortiz <
[email protected]
>
Cc: Lee Jones <
[email protected]
>
Cc: Liam Girdwood <
[email protected]
>
Cc: Alessandro Zummo <
[email protected]
>
Cc: Marek Szyprowski <
[email protected]
>
Cc: Geert Uytterhoeven <
[email protected]
>
Cc: Kyungmin Park <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-s5m.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-s5m.c
b/drivers/rtc/rtc-s5m.c
index 1dfa488e67ff905fa09e4ae4d1507aeb36f26aec..10982cdfce11ef8d7f8cc4968d32ba0ed213fd77 100644
(file)
--- a/
drivers/rtc/rtc-s5m.c
+++ b/
drivers/rtc/rtc-s5m.c
@@
-548,11
+548,13
@@
static int s5m_rtc_probe(struct platform_device *pdev)
switch (pdata->device_type) {
case S5M8763X:
- info->irq = s5m87xx->irq_base + S5M8763_IRQ_ALARM0;
+ info->irq = regmap_irq_get_virq(s5m87xx->irq_data,
+ S5M8763_IRQ_ALARM0);
break;
case S5M8767X:
- info->irq = s5m87xx->irq_base + S5M8767_IRQ_RTCA1;
+ info->irq = regmap_irq_get_virq(s5m87xx->irq_data,
+ S5M8767_IRQ_RTCA1);
break;
default: