summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/kernel/setup.c
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2013-08-27 11:13:29 +0200
committerMichal Simek <michal.simek@xilinx.com>2013-09-03 11:26:52 +0200
commit4bcd943ec81052db47465762bef6787b30b81978 (patch)
tree821b2cd193aef76ac56cde3f5c8c7bc380c4067e /arch/microblaze/kernel/setup.c
parent144f5c19ff954c4b2917f01b763fa2fa51c433a9 (diff)
downloadlinux-4bcd943ec81052db47465762bef6787b30b81978.tar.gz
linux-4bcd943ec81052db47465762bef6787b30b81978.tar.bz2
linux-4bcd943ec81052db47465762bef6787b30b81978.zip
microblaze: timer: Use CLKSRC_OF initialization
Simplify timer initialization and prepare the driver for moving to drivers/clocksource folder. Also remove system-timer property from binding because the name is too generic. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/kernel/setup.c')
-rw-r--r--arch/microblaze/kernel/setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c
index 4259f8b0f113..0775e036c526 100644
--- a/arch/microblaze/kernel/setup.c
+++ b/arch/microblaze/kernel/setup.c
@@ -9,6 +9,7 @@
*/
#include <linux/init.h>
+#include <linux/clocksource.h>
#include <linux/string.h>
#include <linux/seq_file.h>
#include <linux/cpu.h>
@@ -192,6 +193,11 @@ void __init machine_early_init(const char *cmdline, unsigned int ram,
per_cpu(CURRENT_SAVE, 0) = (unsigned long)current;
}
+void __init time_init(void)
+{
+ clocksource_of_init();
+}
+
#ifdef CONFIG_DEBUG_FS
struct dentry *of_debugfs_root;