Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315995
b: refs/heads/master
c: 35bb95a
h: refs/heads/master
i:
  315993: 581a36b
  315991: b5ce633
v: v3
  • Loading branch information
Guenter Roeck committed Jul 22, 2012
1 parent 465d362 commit 6a62b87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ff512b458ba7948d22dab0771233cf9b2da0793
refs/heads/master: 35bb95a17a1c04ec9620553867f29a336e868707
5 changes: 2 additions & 3 deletions trunk/drivers/hwmon/asc7621.c
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,8 @@ asc7621_probe(struct i2c_client *client, const struct i2c_device_id *id)
if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
return -EIO;

data = kzalloc(sizeof(struct asc7621_data), GFP_KERNEL);
data = devm_kzalloc(&client->dev, sizeof(struct asc7621_data),
GFP_KERNEL);
if (data == NULL)
return -ENOMEM;

Expand Down Expand Up @@ -1143,7 +1144,6 @@ asc7621_probe(struct i2c_client *client, const struct i2c_device_id *id)
&(asc7621_params[i].sda.dev_attr));
}

kfree(data);
return err;
}

Expand Down Expand Up @@ -1192,7 +1192,6 @@ static int asc7621_remove(struct i2c_client *client)
&(asc7621_params[i].sda.dev_attr));
}

kfree(data);
return 0;
}

Expand Down

0 comments on commit 6a62b87

Please sign in to comment.