summaryrefslogtreecommitdiff
path: root/drivers/iio/accel/adxl345_i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/accel/adxl345_i2c.c')
-rw-r--r--drivers/iio/accel/adxl345_i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/accel/adxl345_i2c.c b/drivers/iio/accel/adxl345_i2c.c
index 4c6efe2eefc1..1e42cf3a2991 100644
--- a/drivers/iio/accel/adxl345_i2c.c
+++ b/drivers/iio/accel/adxl345_i2c.c
@@ -31,8 +31,7 @@ static int adxl345_i2c_probe(struct i2c_client *client,
if (IS_ERR(regmap))
return dev_err_probe(&client->dev, PTR_ERR(regmap), "Error initializing regmap\n");
- return adxl345_core_probe(&client->dev, regmap, id->driver_data,
- id->name);
+ return adxl345_core_probe(&client->dev, regmap, id->driver_data);
}
static const struct i2c_device_id adxl345_i2c_id[] = {