1
0
Fork 0

nfc: s3fwrn5: i2c: Use devm_request_threaded_irq to avoid irq leak

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
hifive-unleashed-5.1
Axel Lin 2015-09-22 17:49:26 +08:00 committed by Samuel Ortiz
parent 45ee28570d
commit d7e7f02f71
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ static int s3fwrn5_i2c_probe(struct i2c_client *client,
if (ret < 0)
return ret;
ret = request_threaded_irq(phy->i2c_dev->irq, NULL,
ret = devm_request_threaded_irq(&client->dev, phy->i2c_dev->irq, NULL,
s3fwrn5_i2c_irq_thread_fn, IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
S3FWRN5_I2C_DRIVER_NAME, phy);
if (ret)