projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3aacd7f
)
NFC: pn533: i2c: free irq on driver remove
author
Michael Thalmeier
<michael.thalmeier@hale.at>
Thu, 21 Apr 2016 14:43:49 +0000
(16:43 +0200)
committer
Samuel 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nfc/pn533/i2c.c
b/drivers/nfc/pn533/i2c.c
index 9679aa52c3810f62142e8817286fd9946184c97e..1a622e1c0a730ac1ac63f6ba1ba2af42c7a22726 100644
(file)
--- 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;
}