diff options
author | Michael Thalmeier <michael.thalmeier@hale.at> | 2016-04-21 16:43:49 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2016-05-09 23:56:23 +0200 |
commit | 79f09fa79cefdd9df40c9c590cc8dda544ebff26 (patch) | |
tree | e3e982c499e19384c4c9ef835baf457c7c0667b0 /drivers/nfc/pn533 | |
parent | 3aacd7fe552b093fc24a8082e16467eb26c2fa32 (diff) | |
download | linux-stable-79f09fa79cefdd9df40c9c590cc8dda544ebff26.tar.gz linux-stable-79f09fa79cefdd9df40c9c590cc8dda544ebff26.tar.bz2 linux-stable-79f09fa79cefdd9df40c9c590cc8dda544ebff26.zip |
NFC: pn533: i2c: free irq on driver remove
The requested irq needs to be freed when removing the driver,
otherwise a following driver load fails to request the irq.
Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc/pn533')
-rw-r--r-- | drivers/nfc/pn533/i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nfc/pn533/i2c.c b/drivers/nfc/pn533/i2c.c index 9679aa52c381..1a622e1c0a73 100644 --- a/drivers/nfc/pn533/i2c.c +++ b/drivers/nfc/pn533/i2c.c @@ -236,6 +236,8 @@ static int pn533_i2c_remove(struct i2c_client *client) pn533_unregister_device(phy->priv); + free_irq(client->irq, phy); + return 0; } |