Commit 1605abff authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Linus Torvalds

clocksource: versatile: Use sched_clock_register()

The newly merged versatile sched clock support uses a deprecated
interface.  Of course that patch got routed through the ARM tree instead
of going through the relevant maintainer tree.

Use the proper interface so we can get rid of the cruft.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3de0ef8d
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
static void __iomem *versatile_sys_24mhz; static void __iomem *versatile_sys_24mhz;
static u32 notrace versatile_sys_24mhz_read(void) static u64 notrace versatile_sys_24mhz_read(void)
{ {
return readl(versatile_sys_24mhz); return readl(versatile_sys_24mhz);
} }
...@@ -34,7 +34,7 @@ static void __init versatile_sched_clock_init(struct device_node *node) ...@@ -34,7 +34,7 @@ static void __init versatile_sched_clock_init(struct device_node *node)
versatile_sys_24mhz = base + SYS_24MHZ; versatile_sys_24mhz = base + SYS_24MHZ;
setup_sched_clock(versatile_sys_24mhz_read, 32, 24000000); sched_clock_register(versatile_sys_24mhz_read, 32, 24000000);
} }
CLOCKSOURCE_OF_DECLARE(versatile, "arm,vexpress-sysreg", CLOCKSOURCE_OF_DECLARE(versatile, "arm,vexpress-sysreg",
versatile_sched_clock_init); versatile_sched_clock_init);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment