NFC: pn533: fix order of initialization
Correctly call nfc_set_parent_dev before nfc_register_device. Otherwise the driver will OOPS when being removed. Signed-off-by: Michael Thalmeier <michael.thalmeier@hale.at> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:

committed by
Samuel Ortiz

parent
79f09fa79c
commit
b16931b13c
@@ -228,7 +228,8 @@ struct pn533 *pn533_register_device(u32 device_type,
|
||||
void *phy,
|
||||
struct pn533_phy_ops *phy_ops,
|
||||
struct pn533_frame_ops *fops,
|
||||
struct device *dev);
|
||||
struct device *dev,
|
||||
struct device *parent);
|
||||
|
||||
void pn533_unregister_device(struct pn533 *priv);
|
||||
void pn533_recv_frame(struct pn533 *dev, struct sk_buff *skb, int status);
|
||||
|
Reference in New Issue
Block a user