Skip to content

Commit

Permalink
regulator: pv88060: Fix irq leak
Browse files Browse the repository at this point in the history
Use devm_request_threaded_irq to ensure the irq is freed when unload the
module.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Axel Lin authored and Mark Brown committed Nov 25, 2015
1 parent f307a7e commit 8846794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/pv88060-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8846794

Please sign in to comment.