mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
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>
This commit is contained in:
parent
3aacd7fe55
commit
79f09fa79c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue