wm831x_power: Use IRQF_ONESHOT to request threaded IRQs
authorValentin Rothberg <valentinrothberg@gmail.com>
Tue, 22 Sep 2015 17:00:40 +0000 (19:00 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 27 Nov 2015 12:48:19 +0000 (12:48 +0000)
commit7293a7e1ca7b1bb62977cd2fb97dc57ab1e50acf
treefe91a27e70309baadaa8d48cef109bc8dc744fcd
parent604bfd00358e3d7fce8dc789fe52d2f2be0fa4c7
wm831x_power: Use IRQF_ONESHOT to request threaded IRQs

commit 90adf98d9530054b8e665ba5a928de4307231d84 upstream.

Since commit 1c6c69525b40 ("genirq: Reject bogus threaded irq requests")
threaded IRQs without a primary handler need to be requested with
IRQF_ONESHOT, otherwise the request will fail.

scripts/coccinelle/misc/irqf_oneshot.cocci detected this issue.

Fixes: b5874f33bbaf ("wm831x_power: Use genirq")
Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/power/wm831x_power.c