Clocksource/mips-gic: Remove redundant non devicetree init
authorMatt Redfearn <matt.redfearn@imgtec.com>
Wed, 19 Apr 2017 12:26:46 +0000 (13:26 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 Apr 2017 12:56:59 +0000 (14:56 +0200)
Malta was the only platform probing this driver from platform code
without using device tree. With that code removed, gic_clocksource_init
is redundant so remove it.

Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Link: http://lkml.kernel.org/r/1492604806-23420-2-git-send-email-matt.redfearn@imgtec.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/clocksource/mips-gic-timer.c
include/linux/irqchip/mips-gic.h

index b6ad9c0a7c55f6cec3bb17ae04b30d9094c470b6..3f52ee21992374289a872a1c274954376bde75ac 100644 (file)
@@ -154,19 +154,6 @@ static int __init __gic_clocksource_init(void)
        return ret;
 }
 
-void __init gic_clocksource_init(unsigned int frequency)
-{
-       gic_frequency = frequency;
-       gic_timer_irq = MIPS_GIC_IRQ_BASE +
-               GIC_LOCAL_TO_HWIRQ(GIC_LOCAL_INT_COMPARE);
-
-       __gic_clocksource_init();
-       gic_clockevent_init();
-
-       /* And finally start the counter */
-       gic_start_count();
-}
-
 static int __init gic_clocksource_of_init(struct device_node *node)
 {
        struct clk *clk;
index 7b49c71c968ba0935a5482afb71055107563542b..2b0e56619e5377064e9dfe7e701c09b36c200bf2 100644 (file)
@@ -258,7 +258,6 @@ extern unsigned int gic_present;
 extern void gic_init(unsigned long gic_base_addr,
        unsigned long gic_addrspace_size, unsigned int cpu_vec,
        unsigned int irqbase);
-extern void gic_clocksource_init(unsigned int);
 extern u64 gic_read_count(void);
 extern unsigned int gic_get_count_width(void);
 extern u64 gic_read_compare(void);