summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorTony Prisk <linux@prisktech.co.nz>2013-01-15 10:50:49 +0400
committerOlof Johansson <olof@lixom.net>2013-01-15 22:56:24 +0400
commit41d16512ebea6938b95c5e4f2ae008914e91abc1 (patch)
treef0024aa64f7b737b2e19b468a85573514e9e564c /drivers/clocksource
parentff7ec345f0ece9ddbb28538b70ba0c7f0acc17dc (diff)
downloadlinux-41d16512ebea6938b95c5e4f2ae008914e91abc1.tar.xz
timer: vt8500: Convert vt8500 to use CLKSRC_OF
This patch converts arch-vt8500 to make use of CLKSRC_OF. Doing so removes the need for include/linux/vt8500_timer.h as vt8500_timer_init no longer needs to be visible outside vt8500_timer.c Signed-off-by: Tony Prisk <linux@prisktech.co.nz> Reviewed-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/vt8500_timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clocksource/vt8500_timer.c b/drivers/clocksource/vt8500_timer.c
index 3dd21a47881f..b75b8e31dab4 100644
--- a/drivers/clocksource/vt8500_timer.c
+++ b/drivers/clocksource/vt8500_timer.c
@@ -134,7 +134,7 @@ static struct of_device_id vt8500_timer_ids[] = {
{ }
};
-void __init vt8500_timer_init(void)
+static void __init vt8500_timer_init(void)
{
struct device_node *np;
int timer_irq;
@@ -182,3 +182,4 @@ void __init vt8500_timer_init(void)
clockevents_register_device(&clockevent);
}
+CLOCKSOURCE_OF_DECLARE(vt8500, "via,vt8500-timer", vt8500_timer_init)