mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
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 <benjamin.gaignard@st.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Acked-by: Benjamin Gaignard <benjamin.gaignard@st.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/1515418139-23276-9-git-send-email-daniel.lezcano@linaro.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:
parent
067bc91447
commit
1c63c1c089
2 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue