]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 3 Mar 2016 11:45:56 +0000 (12:45 +0100)
commitd91f018713155fb7fb9abbdb7d996dcb901ec607
tree2d16e6678eb88a06f70698f633593e398245ede0
parent0b607563f72ff448d2915eb0a14e74a8fa549df0
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: Jiri Slaby <jslaby@suse.cz>
drivers/power/wm831x_power.c