提交 068a496c 编写于 作者: A Andrey Rusalin 提交者: Samuel Ortiz

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: NAndrey Rusalin <arusalin@dev.rtsoft.ru>
Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
上级 b6355fb3
...@@ -242,10 +242,10 @@ static int pn533_i2c_remove(struct i2c_client *client) ...@@ -242,10 +242,10 @@ static int pn533_i2c_remove(struct i2c_client *client)
dev_dbg(&client->dev, "%s\n", __func__); dev_dbg(&client->dev, "%s\n", __func__);
pn533_unregister_device(phy->priv);
free_irq(client->irq, phy); free_irq(client->irq, phy);
pn533_unregister_device(phy->priv);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册