diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-06-27 10:49:29 -0400 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-08-04 10:01:34 -0400 |
commit | 233adcefee012ae9b3f3e7d16017bce9072fe62d (patch) | |
tree | 4072eda735cadd28dcf913bd6252d66b7a8c9ed0 | |
parent | c83959f89f1cbe2e712c11e4a77d89f4d34d09ff (diff) |
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 <axel.lin@ingics.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
-rw-r--r-- | drivers/hwmon/tmp103.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
151 | return ret; | 151 | return ret; |
152 | } | 152 | } |
153 | 153 | ||
154 | i2c_set_clientdata(client, regmap); | ||
154 | hwmon_dev = hwmon_device_register_with_groups(dev, client->name, | 155 | hwmon_dev = hwmon_device_register_with_groups(dev, client->name, |
155 | regmap, tmp103_groups); | 156 | regmap, tmp103_groups); |
156 | return PTR_ERR_OR_ZERO(hwmon_dev); | 157 | return PTR_ERR_OR_ZERO(hwmon_dev); |