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: https://git.stricted.de/?a=commitdiff_plain;h=d89fa6867d39ccf589799da50b1e1ee1c0713c4d;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.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;