hwmon: (lm90) Always use the dev variable in the probe function
authorGuenter Roeck <linux@roeck-us.net>
Fri, 4 Apr 2014 16:01:35 +0000 (18:01 +0200)
committerJean Delvare <jdelvare@suse.de>
Fri, 4 Apr 2014 16:01:35 +0000 (18:01 +0200)
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
drivers/hwmon/lm90.c

index 733b42e8b2d1285aa0c5d343d4055c0b2fd74307..07ffd1061e353fbebfa18846f309743b8078aa0b 100644 (file)
@@ -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;