NFC: pn533: i2c: free irq on driver remove
authorMichael Thalmeier <michael.thalmeier@hale.at>
Thu, 21 Apr 2016 14:43:49 +0000 (16:43 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 9 May 2016 21:56:23 +0000 (23:56 +0200)
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>
drivers/nfc/pn533/i2c.c

index 9679aa5..1a622e1 100644 (file)
@@ -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;
 }