Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Migrate alchemy 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: Manuel Lauss <manuel.lauss@gmail.com>
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/10599/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Viresh Kumar and committed by
Ralf Baechle
3dcd7779 f17c4ca3

-6
-6
arch/mips/alchemy/common/time.c
··· 69 69 return 0; 70 70 } 71 71 72 - static void au1x_rtcmatch2_set_mode(enum clock_event_mode mode, 73 - struct clock_event_device *cd) 74 - { 75 - } 76 - 77 72 static irqreturn_t au1x_rtcmatch2_irq(int irq, void *dev_id) 78 73 { 79 74 struct clock_event_device *cd = dev_id; ··· 81 86 .features = CLOCK_EVT_FEAT_ONESHOT, 82 87 .rating = 1500, 83 88 .set_next_event = au1x_rtcmatch2_set_next_event, 84 - .set_mode = au1x_rtcmatch2_set_mode, 85 89 .cpumask = cpu_all_mask, 86 90 }; 87 91