aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/mips-gic-timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/mips-gic-timer.c')
-rw-r--r--drivers/clocksource/mips-gic-timer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c
index b4b3ab5a11ad..7a960cd01104 100644
--- a/drivers/clocksource/mips-gic-timer.c
+++ b/drivers/clocksource/mips-gic-timer.c
@@ -109,12 +109,15 @@ static int gic_clockevent_init(void)
109{ 109{
110 int ret; 110 int ret;
111 111
112 if (!cpu_has_counter || !gic_frequency) 112 if (!gic_frequency)
113 return -ENXIO; 113 return -ENXIO;
114 114
115 ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction); 115 ret = setup_percpu_irq(gic_timer_irq, &gic_compare_irqaction);
116 if (ret < 0) 116 if (ret < 0) {
117 pr_err("GIC timer IRQ %d setup failed: %d\n",
118 gic_timer_irq, ret);
117 return ret; 119 return ret;
120 }
118 121
119 cpuhp_setup_state(CPUHP_AP_MIPS_GIC_TIMER_STARTING, 122 cpuhp_setup_state(CPUHP_AP_MIPS_GIC_TIMER_STARTING,
120 "AP_MIPS_GIC_TIMER_STARTING", gic_starting_cpu, 123 "AP_MIPS_GIC_TIMER_STARTING", gic_starting_cpu,