1
0
Fork 0

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
Andy Duan 2017-01-18 13:20:32 +08:00 committed by Jason Liu
parent 15d9379941
commit ee06cc1579
1 changed files with 1 additions and 1 deletions

View File

@ -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.