Commit bcf11801 authored by Kevin D. Kissell's avatar Kevin D. Kissell Committed by Ralf Baechle

MIPS: SMTC: Fix xxx_clockevent_init() naming conflict for SMTC

Commit 779e7d41 created a name collision
in SMTC builds.  The attached patch corrects this in a a
not-too-terribly-ugly manner.  Note that the SMTC case has to come
first, because CEVT_R4K will also be true.
Signed-off-by: default avatarKevin D. Kissell <>
Signed-off-by: default avatarRalf Baechle <>
parent c34e6e8b
......@@ -57,7 +57,11 @@ extern int r4k_clockevent_init(void);
static inline int mips_clockevent_init(void)
extern int smtc_clockevent_init(void);
return smtc_clockevent_init();
return r4k_clockevent_init();
return -ENXIO;
......@@ -245,7 +245,7 @@ irqreturn_t c0_compare_interrupt(int irq, void *dev_id)
int __cpuinit mips_clockevent_init(void)
int __cpuinit smtc_clockevent_init(void)
uint64_t mips_freq = mips_hpt_frequency;
unsigned int cpu = smp_processor_id();
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