diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2013-02-21 15:04:08 -0800 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2013-06-24 17:47:21 -0700 |
commit | faef31b482549640e2d0095afdf3dedb992cfa80 (patch) | |
tree | b49687da2c494960a140087745929320d202cb83 | |
parent | 4d70c59bb5be9e41a06b9f11ecfba75c14f9fea7 (diff) | |
download | op-kernel-dev-faef31b482549640e2d0095afdf3dedb992cfa80.zip op-kernel-dev-faef31b482549640e2d0095afdf3dedb992cfa80.tar.gz |
clocksource: time-armada-370-xp: Fix sparse warning
drivers/clocksource/time-armada-370-xp.c:217:13: warning: symbol
'armada_370_xp_timer_init' was not declared. Should it be static?
Also remove the __init marking in the prototype as it's
unnecessary and drop the init.h file.
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
-rw-r--r-- | drivers/clocksource/time-armada-370-xp.c | 3 | ||||
-rw-r--r-- | include/linux/time-armada-370-xp.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/clocksource/time-armada-370-xp.c b/drivers/clocksource/time-armada-370-xp.c index efdca32..b1e1d92 100644 --- a/drivers/clocksource/time-armada-370-xp.c +++ b/drivers/clocksource/time-armada-370-xp.c @@ -28,9 +28,10 @@ #include <linux/irq.h> #include <linux/module.h> #include <linux/sched_clock.h> +#include <linux/percpu.h> +#include <linux/time-armada-370-xp.h> #include <asm/localtimer.h> -#include <linux/percpu.h> /* * Timer block registers. */ diff --git a/include/linux/time-armada-370-xp.h b/include/linux/time-armada-370-xp.h index dfdfdc0..6fb0856 100644 --- a/include/linux/time-armada-370-xp.h +++ b/include/linux/time-armada-370-xp.h @@ -11,8 +11,6 @@ #ifndef __TIME_ARMADA_370_XPPRCMU_H #define __TIME_ARMADA_370_XPPRCMU_H -#include <linux/init.h> - -void __init armada_370_xp_timer_init(void); +void armada_370_xp_timer_init(void); #endif |