MLK-13773 gpio: pca953x: correct device_reset() return value check on kernel 4.1
Correct device_reset() return value checking. Signed-off-by: Fugang Duan <fugang.duan@nxp.com>pull/10/head
parent
15d9379941
commit
ee06cc1579
|
@ -847,7 +847,7 @@ static int pca953x_probe(struct i2c_client *client,
|
|||
i2c_adapter_depth(client->adapter));
|
||||
|
||||
ret = device_reset(&client->dev);
|
||||
if (ret == -ENODEV)
|
||||
if (ret == -EPROBE_DEFER)
|
||||
return -EPROBE_DEFER;
|
||||
|
||||
/* initialize cached registers from their original values.
|
||||
|
|
Loading…
Reference in New Issue