mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 09:39:00 +00:00
391c5089be
This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html for the original discussion. Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com>
14 lines
427 B
Diff
14 lines
427 B
Diff
--- a/drivers/clocksource/timer-cs5535.c
|
|
+++ b/drivers/clocksource/timer-cs5535.c
|
|
@@ -127,7 +127,9 @@ 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;
|
|
}
|
|
|