OSDN Git Service

power: sbs-battery: Request threaded irq and fix dev callback cookie
authorPhil Reid <preid@electromag.com.au>
Mon, 25 Jul 2016 02:42:58 +0000 (10:42 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Aug 2016 19:51:30 +0000 (21:51 +0200)
commitd2cec82c28802da31596b395ad292cb8f132fd63
treef4c9974089fd309e12d8922271acea6e999692d8
parent9239a86f0976b58d3da7a2261ed659ac9eba0f25
power: sbs-battery: Request threaded irq and fix dev callback cookie

Currently the battery detect gpio can not be used with a chained interrupt
controller that requires threaded irq handlers. Use threaded irq instead.
In addition this was not going to be working at present because
chip->power_supply is assigned after the request irq call.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/sbs-battery.c