提交 88467943 编写于 作者: A Axel Lin 提交者: Mark Brown

regulator: pv88060: Fix irq leak

Use devm_request_threaded_irq to ensure the irq is freed when unload the
module.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 f307a7e9
......@@ -365,7 +365,7 @@ static int pv88060_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,
pv88060_irq_handler,
IRQF_TRIGGER_LOW|IRQF_ONESHOT,
"pv88060", chip);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册