summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Thalmeier <michael.thalmeier@hale.at>2016-04-21 16:43:49 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2016-05-09 23:56:23 +0200
commit79f09fa79cefdd9df40c9c590cc8dda544ebff26 (patch)
treee3e982c499e19384c4c9ef835baf457c7c0667b0
parent3aacd7fe552b093fc24a8082e16467eb26c2fa32 (diff)
downloadop-kernel-dev-79f09fa79cefdd9df40c9c590cc8dda544ebff26.zip
op-kernel-dev-79f09fa79cefdd9df40c9c590cc8dda544ebff26.tar.gz
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>
-rw-r--r--drivers/nfc/pn533/i2c.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nfc/pn533/i2c.c b/drivers/nfc/pn533/i2c.c
index 9679aa5..1a622e1 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;
}
OpenPOWER on IntegriCloud