From: Michael Thalmeier Date: Thu, 21 Apr 2016 14:43:49 +0000 (+0200) Subject: NFC: pn533: i2c: free irq on driver remove X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=79f09fa79cefdd9df40c9c590cc8dda544ebff26;p=linux-beck.git 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 Signed-off-by: Samuel Ortiz --- 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; }