diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-07-06 07:11:53 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-09-03 06:07:50 -0400 |
commit | 20a7835f8f3666eaaec599f8f9f1628c4e7e88dd (patch) | |
tree | e9c2b734662b455956ffe8ea6aba82737d82712f /arch/mips/jazz | |
parent | 3dcd7779ac4dada4a2c97e19a9ac3593891d89a0 (diff) |
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: Viresh 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: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/jazz')
-rw-r--r-- | arch/mips/jazz/irq.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/mips/jazz/irq.c b/arch/mips/jazz/irq.c index e1ea4f625f7a..5d6828b2a750 100644 --- a/arch/mips/jazz/irq.c +++ b/arch/mips/jazz/irq.c | |||
@@ -110,18 +110,11 @@ asmlinkage void plat_irq_dispatch(void) | |||
110 | } | 110 | } |
111 | } | 111 | } |
112 | 112 | ||
113 | static void r4030_set_mode(enum clock_event_mode mode, | ||
114 | struct clock_event_device *evt) | ||
115 | { | ||
116 | /* Nothing to do ... */ | ||
117 | } | ||
118 | |||
119 | struct clock_event_device r4030_clockevent = { | 113 | struct clock_event_device r4030_clockevent = { |
120 | .name = "r4030", | 114 | .name = "r4030", |
121 | .features = CLOCK_EVT_FEAT_PERIODIC, | 115 | .features = CLOCK_EVT_FEAT_PERIODIC, |
122 | .rating = 300, | 116 | .rating = 300, |
123 | .irq = JAZZ_TIMER_IRQ, | 117 | .irq = JAZZ_TIMER_IRQ, |
124 | .set_mode = r4030_set_mode, | ||
125 | }; | 118 | }; |
126 | 119 | ||
127 | static irqreturn_t r4030_timer_interrupt(int irq, void *dev_id) | 120 | static irqreturn_t r4030_timer_interrupt(int irq, void *dev_id) |