iio: health: max30102: Check retval of powermode function
Signed-off-by: Peter Meerwald-Stadler <pmeerw@pmeerw.net> Acked-by: Matt Ranostay <matt.ranostay@konsulko.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Родитель
7b0b0ec157
Коммит
d0b950c73d
|
@ -423,7 +423,10 @@ static int max30102_probe(struct i2c_client *client,
|
||||||
dev_err(&client->dev, "regmap initialization failed\n");
|
dev_err(&client->dev, "regmap initialization failed\n");
|
||||||
return PTR_ERR(data->regmap);
|
return PTR_ERR(data->regmap);
|
||||||
}
|
}
|
||||||
max30102_set_powermode(data, false);
|
|
||||||
|
ret = max30102_set_powermode(data, false);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
|
|
||||||
ret = max30102_chip_init(data);
|
ret = max30102_chip_init(data);
|
||||||
if (ret)
|
if (ret)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче