From b2f89d4c5affd9290f22610d6e9764d7e075589f Mon Sep 17 00:00:00 2001 From: Zorro Liu Date: Mon, 17 Oct 2016 15:25:29 +0800 Subject: [PATCH] driver,iio,inv_mpu_i2c: driver set i2c clientdata twice, remove err one Change-Id: I506d924121b7abe57659815b356a3cbab887f869 Signed-off-by: Zorro Liu --- drivers/staging/iio/imu/inv_mpu/inv_mpu_i2c.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/iio/imu/inv_mpu/inv_mpu_i2c.c b/drivers/staging/iio/imu/inv_mpu/inv_mpu_i2c.c index f1b864324d69..7eb95c133fdf 100644 --- a/drivers/staging/iio/imu/inv_mpu/inv_mpu_i2c.c +++ b/drivers/staging/iio/imu/inv_mpu/inv_mpu_i2c.c @@ -355,8 +355,6 @@ static int of_inv_parse_platform_data(struct i2c_client *client, irq_pin = gpio_to_irq(gpio_pin); client->irq = irq_pin; - i2c_set_clientdata(client, &mpu_data); - ret = of_property_read_u8(np, "mpu-int_config", &mpu_data.int_config); if (ret != 0) { dev_err(&client->dev, "get mpu-int_config error\n"); -- 2.34.1