mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
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>
This commit is contained in:
parent
742192f546
commit
d89fa6867d
1 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue