浏览代码

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>
Michael Thalmeier 9 年之前
父节点
当前提交
79f09fa79c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/nfc/pn533/i2c.c

+ 2 - 0
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;
 }