]> git.baikalelectronics.ru Git - kernel.git/commit
clocksource/mips-gic-timer: Print an error if IRQ setup fails
authorPaul Burton <paul.burton@imgtec.com>
Tue, 13 Sep 2016 16:56:43 +0000 (17:56 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 20 Sep 2016 21:24:33 +0000 (23:24 +0200)
commit8221f1688056b1d4cf050ecdf208adeeb124d868
tree33bde3e9185d205aac9bedb87df544635b22ffdd
parentf41acdf05495c0bf7441077e6821cea543d6eac4
clocksource/mips-gic-timer: Print an error if IRQ setup fails

We've checked for errors from setup_irq_percpu since commit 3e811c21bb5a
("CLOCKSOURCE: mips-gic: Add missing error returns checks") but didn't
print an error message in the failure case. This makes it very easy to
overlook the GIC timer clock event driver not being registered, since
we'll generally just use a different clock event driver if that happens.

Print an error if IRQ setup fails in order to make such problems harder
to miss (ie. not completely silent).

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: http://lkml.kernel.org/r/20160913165644.627-1-paul.burton@imgtec.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/clocksource/mips-gic-timer.c