From: Axel Lin Date: Fri, 27 Jun 2014 14:49:29 +0000 (+0800) Subject: hwmon: (tmp103) Add missing i2c_set_clientdata call in tmp103_probe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=233adcefee012ae9b3f3e7d16017bce9072fe62d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git hwmon: (tmp103) Add missing i2c_set_clientdata call in tmp103_probe Add missing i2c_set_clientdata() call in tmp103_probe, this makes the dev_get_drvdata() call in tmp103_suspend/tmp103_resume return correct address. Signed-off-by: Axel Lin Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/tmp103.c b/drivers/hwmon/tmp103.c index e69dbcacac89..c9f99e0eb368 100644 --- a/drivers/hwmon/tmp103.c +++ b/drivers/hwmon/tmp103.c @@ -151,6 +151,7 @@ static int tmp103_probe(struct i2c_client *client, return ret; } + i2c_set_clientdata(client, regmap); hwmon_dev = hwmon_device_register_with_groups(dev, client->name, regmap, tmp103_groups); return PTR_ERR_OR_ZERO(hwmon_dev);