summaryrefslogtreecommitdiffstats
path: root/drivers/iio/gyro/bmg160_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/gyro/bmg160_spi.c')
-rw-r--r--drivers/iio/gyro/bmg160_spi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/gyro/bmg160_spi.c b/drivers/iio/gyro/bmg160_spi.c
index 03e80bb2601a..745962e1e423 100644
--- a/drivers/iio/gyro/bmg160_spi.c
+++ b/drivers/iio/gyro/bmg160_spi.c
@@ -19,8 +19,8 @@ static int bmg160_spi_probe(struct spi_device *spi)
regmap = devm_regmap_init_spi(spi, &bmg160_regmap_spi_conf);
if (IS_ERR(regmap)) {
- dev_err(&spi->dev, "Failed to register spi regmap %d\n",
- (int)PTR_ERR(regmap));
+ dev_err(&spi->dev, "Failed to register spi regmap: %pe\n",
+ regmap);
return PTR_ERR(regmap);
}