]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regulator: pv88060: Fix irq leak
authorAxel Lin <axel.lin@ingics.com>
Wed, 25 Nov 2015 04:34:07 +0000 (12:34 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 25 Nov 2015 11:57:46 +0000 (11:57 +0000)
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>
drivers/regulator/pv88060-regulator.c

index 60b16d835df72b664a5be0e2e8510851e0c19ab3..69893f28122a6bc48b8e40f18bdce4bc39561e23 100644 (file)
@@ -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);