From 233adcefee012ae9b3f3e7d16017bce9072fe62d Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 27 Jun 2014 22:49:29 +0800 Subject: 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 --- drivers/hwmon/tmp103.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/hwmon/tmp103.c') 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); -- cgit v1.2.3