summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2014-04-04 18:01:35 +0200
committerJean Delvare <jdelvare@suse.de>2014-04-04 18:01:35 +0200
commitd89fa6867d39ccf589799da50b1e1ee1c0713c4d (patch)
treedfb728d26bb7456c300a70a6489689b25d2316c1 /drivers
parent742192f546ae710dd9bc8ddea2354636eac33b57 (diff)
downloadlinux-d89fa6867d39ccf589799da50b1e1ee1c0713c4d.tar.bz2
hwmon: (lm90) Always use the dev variable in the probe function
Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/lm90.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index 733b42e8b2d1..07ffd1061e35 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -1536,12 +1536,11 @@ static int lm90_probe(struct i2c_client *client,
err = regulator_enable(regulator);
if (err < 0) {
- dev_err(&client->dev,
- "Failed to enable regulator: %d\n", err);
+ dev_err(dev, "Failed to enable regulator: %d\n", err);
return err;
}
- data = devm_kzalloc(&client->dev, sizeof(struct lm90_data), GFP_KERNEL);
+ data = devm_kzalloc(dev, sizeof(struct lm90_data), GFP_KERNEL);
if (!data)
return -ENOMEM;