clockevents: Don't validate dev->mode against CLOCK_EVT_MODE_UNUSED for new interface
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 27 Feb 2015 11:51:34 +0000 (17:21 +0530)
committerIngo Molnar <mingo@kernel.org>
Fri, 27 Mar 2015 09:26:20 +0000 (10:26 +0100)
commitde81e64b250d3865a75d221a80b4311e3273670a
tree63711fb3ef4dcfb75f928c0e38c85b6060532123
parent77e32c89a7117614ab3d66d20c1088de721abfaa
clockevents: Don't validate dev->mode against CLOCK_EVT_MODE_UNUSED for new interface

It was a requirement in the legacy interface that drivers must
initialize ->mode field to 'CLOCK_EVT_MODE_UNUSED'. This field
isn't used anymore by the new interface and so should be only
checked for the legacy interface.

Probably it can be dropped as well as core doesn't rely on it
anymore, but lets keep it to support legacy interface.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Cc: linaro-kernel@lists.linaro.org
Cc: linaro-networking@linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/c6604fa1a77fe1fc8dcab87769857228fb1dadd5.1425037853.git.viresh.kumar@linaro.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/time/clockevents.c