Commit 20a7835f authored by Viresh Kumar's avatar Viresh Kumar Committed by Ralf Baechle

MIPS: Jazz: Migrate to new 'set-state' interface

Migrate jazz driver to the new 'set-state' interface provided by
clockevents core, the earlier 'set-mode' interface is marked obsolete
now.

This also enables us to implement callbacks for new states of clockevent
devices, for example: ONESHOT_STOPPED.

We weren't doing anything in the ->set_mode() callback. So, this patch
doesn't provide any set-state callbacks.
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: linux-mips@linux-mips.org
Cc: linaro-kernel@lists.linaro.org
Cc: Thomas Gleixner <tglx@linutronix.de>
Patchwork: https://patchwork.linux-mips.org/patch/10600/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 3dcd7779
...@@ -110,18 +110,11 @@ asmlinkage void plat_irq_dispatch(void) ...@@ -110,18 +110,11 @@ asmlinkage void plat_irq_dispatch(void)
} }
} }
static void r4030_set_mode(enum clock_event_mode mode,
struct clock_event_device *evt)
{
/* Nothing to do ... */
}
struct clock_event_device r4030_clockevent = { struct clock_event_device r4030_clockevent = {
.name = "r4030", .name = "r4030",
.features = CLOCK_EVT_FEAT_PERIODIC, .features = CLOCK_EVT_FEAT_PERIODIC,
.rating = 300, .rating = 300,
.irq = JAZZ_TIMER_IRQ, .irq = JAZZ_TIMER_IRQ,
.set_mode = r4030_set_mode,
}; };
static irqreturn_t r4030_timer_interrupt(int irq, void *dev_id) static irqreturn_t r4030_timer_interrupt(int irq, void *dev_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