mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
7f3dab2fc3
Refreshed all patches. Removed upstream ramips patch: 0063-set-CM_GCR_BASE_CMDEFTGT_MEM-according-to-datasheet.patch Compile-tested: ar71xx Run-tested: ar71xx Signed-off-by: Etienne Haarsma <bladeoner112@gmail.com> Tested-by: Stijn Segers <francesco.borromini@inventati.org>
13 lines
431 B
Diff
13 lines
431 B
Diff
--- a/drivers/clocksource/cs5535-clockevt.c
|
|
+++ b/drivers/clocksource/cs5535-clockevt.c
|
|
@@ -130,7 +130,8 @@ static irqreturn_t mfgpt_tick(int irq, v
|
|
cs5535_mfgpt_write(cs5535_event_clock, MFGPT_REG_SETUP,
|
|
MFGPT_SETUP_CNTEN | MFGPT_SETUP_CMP2);
|
|
|
|
- cs5535_clockevent.event_handler(&cs5535_clockevent);
|
|
+ if (cs5535_clockevent.event_handler)
|
|
+ cs5535_clockevent.event_handler(&cs5535_clockevent);
|
|
return IRQ_HANDLED;
|
|
}
|
|
|