|
|
@@ -1441,7 +1441,8 @@ static int aic31xx_i2c_probe(struct i2c_client *i2c,
|
|
|
aic31xx->gpio_reset = devm_gpiod_get_optional(aic31xx->dev, "reset",
|
|
|
GPIOD_OUT_LOW);
|
|
|
if (IS_ERR(aic31xx->gpio_reset)) {
|
|
|
- dev_err(aic31xx->dev, "not able to acquire gpio\n");
|
|
|
+ if (PTR_ERR(aic31xx->gpio_reset) != -EPROBE_DEFER)
|
|
|
+ dev_err(aic31xx->dev, "not able to acquire gpio\n");
|
|
|
return PTR_ERR(aic31xx->gpio_reset);
|
|
|
}
|
|
|
|
|
|
@@ -1452,7 +1453,9 @@ static int aic31xx_i2c_probe(struct i2c_client *i2c,
|
|
|
ARRAY_SIZE(aic31xx->supplies),
|
|
|
aic31xx->supplies);
|
|
|
if (ret) {
|
|
|
- dev_err(aic31xx->dev, "Failed to request supplies: %d\n", ret);
|
|
|
+ if (ret != -EPROBE_DEFER)
|
|
|
+ dev_err(aic31xx->dev,
|
|
|
+ "Failed to request supplies: %d\n", ret);
|
|
|
return ret;
|
|
|
}
|
|
|
|