mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
drivers/misc/bmp085.c: free initmem memory
Free the memory that is used only at init Signed-off-by: Shubhrajyoti Datta <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4a7de634f0
commit
45bff2ea42
1 changed files with 3 additions and 3 deletions
|
|
@ -402,7 +402,7 @@ exit:
|
|||
return status;
|
||||
}
|
||||
|
||||
static int bmp085_probe(struct i2c_client *client,
|
||||
static int __devinit bmp085_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
{
|
||||
struct bmp085_data *data;
|
||||
|
|
@ -438,7 +438,7 @@ exit:
|
|||
return err;
|
||||
}
|
||||
|
||||
static int bmp085_remove(struct i2c_client *client)
|
||||
static int __devexit bmp085_remove(struct i2c_client *client)
|
||||
{
|
||||
sysfs_remove_group(&client->dev.kobj, &bmp085_attr_group);
|
||||
kfree(i2c_get_clientdata(client));
|
||||
|
|
@ -458,7 +458,7 @@ static struct i2c_driver bmp085_driver = {
|
|||
},
|
||||
.id_table = bmp085_id,
|
||||
.probe = bmp085_probe,
|
||||
.remove = bmp085_remove,
|
||||
.remove = __devexit_p(bmp085_remove),
|
||||
|
||||
.detect = bmp085_detect,
|
||||
.address_list = normal_i2c
|
||||
|
|
|
|||
Loading…
Reference in a new issue