diff options
author | Benjamin Gaignard <benjamin.gaignard@linaro.org> | 2017-11-14 03:52:38 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-11-14 05:20:24 -0500 |
commit | 558de28249508dc3ec0ec8981d1315eb8b63f0d9 (patch) | |
tree | 0c9f00e225db61fcf1dc0418cb04dcbb5615e015 /drivers/clocksource/timer-of.c | |
parent | d4bfeabe9ff7967f4b8c24aabf2de1ce3a909cd9 (diff) |
clocksource/timer_of: Rename timer_of_exit to timer_of_cleanup
Change the function name to something more explicit since it is only used
in init error cases.
Add __init annotation and description about the function usage.
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: mark.rutland@arm.com
Cc: devicetree@vger.kernel.org
Cc: alexandre.torgue@st.com
Cc: arnd@arndb.de
Cc: julien.thierry@arm.com
Cc: daniel.lezcano@linaro.org
Cc: linux@armlinux.org.uk
Cc: robh+dt@kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: mcoquelin.stm32@gmail.com
Cc: sudeep.holla@arm.com
Cc: ludovic.barre@st.com
Link: https://lkml.kernel.org/r/1510649563-22975-2-git-send-email-benjamin.gaignard@linaro.org
Diffstat (limited to 'drivers/clocksource/timer-of.c')
-rw-r--r-- | drivers/clocksource/timer-of.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-of.c b/drivers/clocksource/timer-of.c index 7c64a5c1bfc1..a31990408153 100644 --- a/drivers/clocksource/timer-of.c +++ b/drivers/clocksource/timer-of.c | |||
@@ -177,7 +177,14 @@ out_fail: | |||
177 | return ret; | 177 | return ret; |
178 | } | 178 | } |
179 | 179 | ||
180 | void timer_of_exit(struct timer_of *to) | 180 | /** |
181 | * timer_of_cleanup - release timer_of ressources | ||
182 | * @to: timer_of structure | ||
183 | * | ||
184 | * Release the ressources that has been used in timer_of_init(). | ||
185 | * This function should be called in init error cases | ||
186 | */ | ||
187 | void __init timer_of_cleanup(struct timer_of *to) | ||
181 | { | 188 | { |
182 | if (to->flags & TIMER_OF_IRQ) | 189 | if (to->flags & TIMER_OF_IRQ) |
183 | timer_irq_exit(&to->of_irq); | 190 | timer_irq_exit(&to->of_irq); |