diff options
| author | Daniel Lezcano <[email protected]> | 2018-01-08 13:28:48 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2018-01-08 16:57:24 +0000 |
| commit | 1c63c1c089a48e1b1821a73dc36a3997ced2f82d (patch) | |
| tree | 455f96ad0ce90113ff2dfdd54b19309ba20b9c60 /drivers/clocksource/timer-of.c | |
| parent | clocksource/drivers/spreadtrum: Add timer driver for the Spreadtrum SC9860 pl... (diff) | |
| download | kernel-1c63c1c089a48e1b1821a73dc36a3997ced2f82d.tar.gz kernel-1c63c1c089a48e1b1821a73dc36a3997ced2f82d.zip | |
clocksource/drivers/timer-of: Store the device node pointer in 'struct timer_of'
Under certain circumstances, some specific operations must be done with the
device node pointer, which forces the timer code to propagate the pointer to
the functions which need it.
In order to consolidate the function signatures in the different drivers
by using the timer-of structure, let's store it in the timer-of structure
as a handy pointer when it is needed.
Tested-by: Benjamin Gaignard <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Acked-by: Benjamin Gaignard <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/clocksource/timer-of.c')
| -rw-r--r-- | drivers/clocksource/timer-of.c | 3 |
1 files changed, 3 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) if (!to->clkevt.name) to->clkevt.name = np->name; + + to->np = np; + return ret; out_fail: |
