]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clocksource/timer_of: Rename timer_of_exit to timer_of_cleanup
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Tue, 14 Nov 2017 08:52:38 +0000 (09:52 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 14 Nov 2017 10:20:24 +0000 (11:20 +0100)
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
drivers/clocksource/timer-of.c
drivers/clocksource/timer-of.h

index 7c64a5c1bfc13bb536bdefc1f3dab53273e315fb..a31990408153d13e33211363e2d4e3442f8b9d8e 100644 (file)
@@ -177,7 +177,14 @@ int __init timer_of_init(struct device_node *np, struct timer_of *to)
        return ret;
 }
 
-void timer_of_exit(struct timer_of *to)
+/**
+ * timer_of_cleanup - release timer_of ressources
+ * @to: timer_of structure
+ *
+ * Release the ressources that has been used in timer_of_init().
+ * This function should be called in init error cases
+ */
+void __init timer_of_cleanup(struct timer_of *to)
 {
        if (to->flags & TIMER_OF_IRQ)
                timer_irq_exit(&to->of_irq);
index 43f5ba3f8979d9005c09247f5cb87583bef773bf..3f708f1be43d8671359ab5b9d0bc7934b94aec5b 100644 (file)
@@ -68,6 +68,6 @@ static inline unsigned long timer_of_period(struct timer_of *to)
 extern int __init timer_of_init(struct device_node *np,
                                struct timer_of *to);
 
-extern void timer_of_exit(struct timer_of *to);
+extern void __init timer_of_cleanup(struct timer_of *to);
 
 #endif