From: Guenter Roeck Date: Fri, 4 Apr 2014 16:01:35 +0000 (+0200) Subject: hwmon: (lm90) Always use the dev variable in the probe function X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d89fa6867d39ccf589799da50b1e1ee1c0713c4d;p=openwrt%2Fstaging%2Fblogic.git hwmon: (lm90) Always use the dev variable in the probe function Signed-off-by: Guenter Roeck Signed-off-by: Jean Delvare --- 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;