diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-09-22 11:49:26 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-07 01:41:58 +0200 |
commit | d7e7f02f71bee425d651ced7ba3b316df61ab945 (patch) | |
tree | 52aa7b430513e2edcf665c7ddc759a19f73aee91 /drivers/nfc/s3fwrn5/i2c.c | |
parent | nfc: s3fwrn5: Make NFC_S3FWRN5 select CRYPTO (diff) | |
download | linux-d7e7f02f71bee425d651ced7ba3b316df61ab945.tar.xz linux-d7e7f02f71bee425d651ced7ba3b316df61ab945.zip |
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>
Diffstat (limited to 'drivers/nfc/s3fwrn5/i2c.c')
-rw-r--r-- | drivers/nfc/s3fwrn5/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nfc/s3fwrn5/i2c.c b/drivers/nfc/s3fwrn5/i2c.c index b4dd7dd47473..c61d8a308da4 100644 --- a/drivers/nfc/s3fwrn5/i2c.c +++ b/drivers/nfc/s3fwrn5/i2c.c @@ -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) |