diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2015-06-18 16:24:17 +0530 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2015-08-10 11:40:27 +0200 |
commit | bd88420c589afc0c58542a5d1953637ef2fa64e4 (patch) | |
tree | 8c61733e0d4ad77ef779b83e5cdf34488150926e /drivers/clocksource | |
parent | 5c0a4bbefc0571ba3addb39da0eb53368c018b64 (diff) | |
download | linux-stable-bd88420c589afc0c58542a5d1953637ef2fa64e4.tar.gz linux-stable-bd88420c589afc0c58542a5d1953637ef2fa64e4.tar.bz2 linux-stable-bd88420c589afc0c58542a5d1953637ef2fa64e4.zip |
clockevents/drivers/clps711x: Migrate to new 'set-state' interface
Migrate clps711x 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.
Cc: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/clps711x-timer.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/clocksource/clps711x-timer.c b/drivers/clocksource/clps711x-timer.c index d83ec1f2fddc..cdd86e3525bb 100644 --- a/drivers/clocksource/clps711x-timer.c +++ b/drivers/clocksource/clps711x-timer.c @@ -61,11 +61,6 @@ static irqreturn_t clps711x_timer_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static void clps711x_clockevent_set_mode(enum clock_event_mode mode, - struct clock_event_device *evt) -{ -} - static int __init _clps711x_clkevt_init(struct clk *clock, void __iomem *base, unsigned int irq) { @@ -91,7 +86,6 @@ static int __init _clps711x_clkevt_init(struct clk *clock, void __iomem *base, clkevt->name = "clps711x-clockevent"; clkevt->rating = 300; clkevt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_C3STOP; - clkevt->set_mode = clps711x_clockevent_set_mode; clkevt->cpumask = cpumask_of(0); clockevents_config_and_register(clkevt, HZ, 0, 0); |