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>
Šī revīzija ir iekļauta:

revīziju iesūtīja
Samuel Ortiz

vecāks
79f09fa79c
revīzija
b16931b13c
@@ -211,7 +211,8 @@ static int pn533_i2c_probe(struct i2c_client *client,
|
||||
PN533_NO_TYPE_B_PROTOCOLS,
|
||||
PN533_PROTO_REQ_ACK_RESP,
|
||||
phy, &i2c_phy_ops, NULL,
|
||||
&phy->i2c_dev->dev);
|
||||
&phy->i2c_dev->dev,
|
||||
&client->dev);
|
||||
|
||||
if (IS_ERR(priv)) {
|
||||
r = PTR_ERR(priv);
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user