Commit 233adcef authored by Axel Lin's avatar Axel Lin Committed by Guenter Roeck

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent c83959f8
...@@ -151,6 +151,7 @@ static int tmp103_probe(struct i2c_client *client, ...@@ -151,6 +151,7 @@ static int tmp103_probe(struct i2c_client *client,
return ret; return ret;
} }
i2c_set_clientdata(client, regmap);
hwmon_dev = hwmon_device_register_with_groups(dev, client->name, hwmon_dev = hwmon_device_register_with_groups(dev, client->name,
regmap, tmp103_groups); regmap, tmp103_groups);
return PTR_ERR_OR_ZERO(hwmon_dev); return PTR_ERR_OR_ZERO(hwmon_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment