diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-04-15 19:25:41 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-05-13 19:56:05 +0300 |
commit | b4d32eb31f49358ad9de1baed92844e7a4cc5de0 (patch) | |
tree | ab9dbf36f6259ddaa41c22544c82c589c79aac68 /drivers/iio/accel | |
parent | 773aa06d706ce1c2055b7a3f1616c2978ca66dac (diff) | |
download | linux-b4d32eb31f49358ad9de1baed92844e7a4cc5de0.tar.xz |
iio: accel: bma400: Simplify an error message
dev_err_probe() already display the error code. There is no need to
duplicate it explicitly in the error message.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/9373d41b0a1f3dc3fc0d31c1daaa19d9a7ec4dcd.1681575924.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel')
-rw-r--r-- | drivers/iio/accel/bma400_core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/accel/bma400_core.c b/drivers/iio/accel/bma400_core.c index a68b845f5b4f..e90e2f01550a 100644 --- a/drivers/iio/accel/bma400_core.c +++ b/drivers/iio/accel/bma400_core.c @@ -868,8 +868,7 @@ static int bma400_init(struct bma400_data *data) ARRAY_SIZE(regulator_names), regulator_names); if (ret) - return dev_err_probe(data->dev, ret, "Failed to get regulators: %d\n", - ret); + return dev_err_probe(data->dev, ret, "Failed to get regulators\n"); /* Try to read chip_id register. It must return 0x90. */ ret = regmap_read(data->regmap, BMA400_CHIP_ID_REG, &val); |