power: supply: sbs-battery: fix the sbs interrupt request
authorRyosuke Saito <raitosyo@gmail.com>
Fri, 21 Apr 2017 03:13:17 +0000 (12:13 +0900)
committerSebastian Reichel <sre@kernel.org>
Mon, 1 May 2017 09:52:24 +0000 (11:52 +0200)
commitbb8fe8ea0067083e0452d5c67a4ab70ad72cc52f
tree49108c2be906fe6a859a86e95e839b2a21bb2978
parent46c202b5f25fb6fbd4af60ded133fa745b3601b3
power: supply: sbs-battery: fix the sbs interrupt request

Since we use the default primary handler for the irq, IRQF_ONESHOT must
be set. Otherwise the request fails and the following errors are
displayed:

genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq 129
sbs-battery 0-000b: Failed to request irq: -22

Signed-off-by: Ryosuke Saito <raitosyo@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/sbs-battery.c