diff options
-rw-r--r-- | drivers/clocksource/timer-of.c | 3 | ||||
-rw-r--r-- | drivers/clocksource/timer-of.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index c1045b9a787c..25008d2cc346 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c | |||
@@ -200,6 +200,9 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to) | |||
200 | 200 | ||
201 | if (!to->clkevt.name) | 201 | if (!to->clkevt.name) |
202 | to->clkevt.name = np->name; | 202 | to->clkevt.name = np->name; |
203 | |||
204 | to->np = np; | ||
205 | |||
203 | return ret; | 206 | return ret; |
204 | 207 | ||
205 | out_fail: | 208 | out_fail: |
diff --git a/drivers/clocksource/timer-of.h b/drivers/clocksource/timer-of.h index 3f708f1be43d..a5478f3e8589 100644 --- a/drivers/clocksource/timer-of.h +++ b/drivers/clocksource/timer-of.h | |||
@@ -33,6 +33,7 @@ struct of_timer_clk { | |||
33 | 33 | ||
34 | struct timer_of { | 34 | struct timer_of { |
35 | unsigned int flags; | 35 | unsigned int flags; |
36 | struct device_node *np; | ||
36 | struct clock_event_device clkevt; | 37 | struct clock_event_device clkevt; |
37 | struct of_timer_base of_base; | 38 | struct of_timer_base of_base; |
38 | struct of_timer_irq of_irq; | 39 | struct of_timer_irq of_irq; |