mfd: ab8500-debugfs: Remove the racy fiddling with irq_desc
authorThomas Gleixner <tglx@linutronix.de>
Thu, 10 Dec 2020 19:25:52 +0000 (20:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Dec 2020 15:19:32 +0000 (16:19 +0100)
commit886c8121659dddb6dbfab4cdeb58d75e2d928731
tree5975a1aef29b4176b9f8358b9f0e58396bd49a8d
parentf3925032d7fd4aa627ff10e780430269b3829f83
mfd: ab8500-debugfs: Remove the racy fiddling with irq_desc

First of all drivers have absolutely no business to dig into the internals
of an irq descriptor. That's core code and subject to change. All of this
information is readily available to /proc/interrupts in a safe and race
free way.

Remove the inspection code which is a blatant violation of subsystem
boundaries and racy against concurrent modifications of the interrupt
descriptor.

Print the irq line instead so the information can be looked up in a sane
way in /proc/interrupts.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20201210194044.157283633@linutronix.de
drivers/mfd/ab8500-debugfs.c