mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
NFC: pn533: change order of free_irq and dev unregistration
Change order of free_irq and dev unregistration. It fixes situation when device already unregistered and an interrupt happens and nobody can handle it. Signed-off-by: Andrey Rusalin <[email protected]> Signed-off-by: Samuel Ortiz <[email protected]>
This commit is contained in:
parent
b6355fb3f5
commit
068a496c45
1 changed files with 2 additions and 2 deletions
|
|
@ -242,10 +242,10 @@ static int pn533_i2c_remove(struct i2c_client *client)
|
|||
|
||||
dev_dbg(&client->dev, "%s\n", __func__);
|
||||
|
||||
pn533_unregister_device(phy->priv);
|
||||
|
||||
free_irq(client->irq, phy);
|
||||
|
||||
pn533_unregister_device(phy->priv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue