* [PATCH] regulator: pv88090: Fix irq leak
@ 2015-12-10 10:11 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2015-12-10 10:11 UTC (permalink / raw)
To: Mark Brown; +Cc: James Ban, Liam Girdwood, linux-kernel
Use devm_request_threaded_irq to ensure the irq is freed when unload the
module.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
drivers/regulator/pv88090-regulator.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/regulator/pv88090-regulator.c b/drivers/regulator/pv88090-regulator.c
index 3ec5f2b..2513fef 100644
--- a/drivers/regulator/pv88090-regulator.c
+++ b/drivers/regulator/pv88090-regulator.c
@@ -357,7 +357,7 @@ static int pv88090_i2c_probe(struct i2c_client *i2c,
return ret;
}
- ret = request_threaded_irq(i2c->irq, NULL,
+ ret = devm_request_threaded_irq(&i2c->dev, i2c->irq, NULL,
pv88090_irq_handler,
IRQF_TRIGGER_LOW|IRQF_ONESHOT,
"pv88090", chip);
--
2.1.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-12-10 10:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-10 10:11 [PATCH] regulator: pv88090: Fix irq leak Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome