Skip to content

Commit 558de28

Browse files
Benjamin-GaignardKAGA-KOKO
authored andcommitted
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
1 parent d4bfeab commit 558de28

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

‎drivers/clocksource/timer-of.c‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,14 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to)
177177
return ret;
178178
}
179179

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)
181188
{
182189
if (to->flags & TIMER_OF_IRQ)
183190
timer_irq_exit(&to->of_irq);

‎drivers/clocksource/timer-of.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,6 @@ static inline unsigned long timer_of_period(struct timer_of *to)
6868
extern int __init timer_of_init(struct device_node *np,
6969
struct timer_of *to);
7070

71-
extern void timer_of_exit(struct timer_of *to);
71+
extern void __init timer_of_cleanup(struct timer_of *to);
7272

7373
#endif

0 commit comments

Comments
 (0)