From: Wei Yongjun Date: Mon, 11 Nov 2013 07:34:05 +0000 (-0800) Subject: Input: mpu3050 - add missing i2c_set_clientdata() in mpu3050_probe() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=158baef35129e46e3eb15838092e91b94f0181e0;p=linux-beck.git Input: mpu3050 - add missing i2c_set_clientdata() in mpu3050_probe() Add missing i2c_set_clientdata() in mpu3050_probe(), otherwise calling i2c_get_clientdata() in mpu3050_remove() returns NULL. Signed-off-by: Wei Yongjun Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c index dce0d95943c5..6983ffbbfb94 100644 --- a/drivers/input/misc/mpu3050.c +++ b/drivers/input/misc/mpu3050.c @@ -383,6 +383,7 @@ static int mpu3050_probe(struct i2c_client *client, pm_runtime_enable(&client->dev); pm_runtime_set_autosuspend_delay(&client->dev, MPU3050_AUTO_DELAY); + i2c_set_clientdata(client, sensor); return 0;