Skip to content

Commit

Permalink
Clocksource/mips-gic: Remove redundant non devicetree init
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: [email protected]
Cc: Jason Cooper <[email protected]>
Cc: Paul Burton <[email protected]>
Cc: Daniel Lezcano <[email protected]>
Cc: Ralf Baechle <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
mpredfearn authored and KAGA-KOKO committed Apr 20, 2017
1 parent 4287ade commit 58bb100
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
13 changes: 0 additions & 13 deletions drivers/clocksource/mips-gic-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion include/linux/irqchip/mips-gic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 58bb100

Please sign in to comment.