summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-11-10 23:34:05 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-11-11 00:01:44 -0800
commit158baef35129e46e3eb15838092e91b94f0181e0 (patch)
tree0567e4cdb6e1aeaffb0533a4caf807fafba686ba /drivers/input
parenta108193cf9685061660e111f985594d6a344abfb (diff)
downloadop-kernel-dev-158baef35129e46e3eb15838092e91b94f0181e0.zip
op-kernel-dev-158baef35129e46e3eb15838092e91b94f0181e0.tar.gz
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 <yongjun_wei@trendmicro.com.cn> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/misc/mpu3050.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/misc/mpu3050.c b/drivers/input/misc/mpu3050.c
index dce0d95..6983ffb 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;
OpenPOWER on IntegriCloud