summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/adxl345_spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/accel/adxl345_spi.c')
-rw-r--r--drivers/iio/accel/adxl345_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/accel/adxl345_spi.c b/drivers/iio/accel/adxl345_spi.c
index 72550132b1bb..34b7001d519f 100644
--- a/drivers/iio/accel/adxl345_spi.c
+++ b/drivers/iio/accel/adxl345_spi.c
@@ -34,7 +34,7 @@ static int adxl345_spi_probe(struct spi_device *spi)
if (IS_ERR(regmap))
return dev_err_probe(&spi->dev, PTR_ERR(regmap), "Error initializing regmap\n");
- return adxl345_core_probe(&spi->dev, regmap, id->driver_data, id->name);
+ return adxl345_core_probe(&spi->dev, regmap, id->driver_data);
}
static const struct spi_device_id adxl345_spi_id[] = {