diff options
author | Andy Duan <fugang.duan@nxp.com> | 2017-01-18 13:20:32 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2019-02-12 10:25:45 +0800 |
commit | 7836dc9d9365364e5ee42b483090a0e98e9055b4 (patch) | |
tree | 0d52d517cec3612745392d166d4b5c70a32283e0 /drivers/gpio/gpio-pca953x.c | |
parent | 5d4cd8d72b045529db04476a732824aef4398564 (diff) |
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>
Diffstat (limited to 'drivers/gpio/gpio-pca953x.c')
-rw-r--r-- | drivers/gpio/gpio-pca953x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 04d347a5073c..efa721d253ad 100644 --- a/drivers/gpio/gpio-pca953x.c +++ b/drivers/gpio/gpio-pca953x.c @@ -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. |