diff options
author | Shubhrajyoti Datta <shubhrajyoti@ti.com> | 2011-03-22 19:33:57 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-22 20:44:10 -0400 |
commit | 45bff2ea4285cac5b4438c65216e114d3619f123 (patch) | |
tree | 5e835484c87156feeb51bb50887156e2d9635e72 /drivers/misc | |
parent | 4a7de634f0316080cae5dd4a994112049a7d8462 (diff) |
drivers/misc/bmp085.c: free initmem memory
Free the memory that is used only at init
Signed-off-by: Shubhrajyoti Datta <shubhrajyoti@ti.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/bmp085.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/bmp085.c b/drivers/misc/bmp085.c index b6e1c9a6679e..ecd276ad6b19 100644 --- a/drivers/misc/bmp085.c +++ b/drivers/misc/bmp085.c | |||
@@ -402,7 +402,7 @@ exit: | |||
402 | return status; | 402 | return status; |
403 | } | 403 | } |
404 | 404 | ||
405 | static int bmp085_probe(struct i2c_client *client, | 405 | static int __devinit bmp085_probe(struct i2c_client *client, |
406 | const struct i2c_device_id *id) | 406 | const struct i2c_device_id *id) |
407 | { | 407 | { |
408 | struct bmp085_data *data; | 408 | struct bmp085_data *data; |
@@ -438,7 +438,7 @@ exit: | |||
438 | return err; | 438 | return err; |
439 | } | 439 | } |
440 | 440 | ||
441 | static int bmp085_remove(struct i2c_client *client) | 441 | static int __devexit bmp085_remove(struct i2c_client *client) |
442 | { | 442 | { |
443 | sysfs_remove_group(&client->dev.kobj, &bmp085_attr_group); | 443 | sysfs_remove_group(&client->dev.kobj, &bmp085_attr_group); |
444 | kfree(i2c_get_clientdata(client)); | 444 | kfree(i2c_get_clientdata(client)); |
@@ -458,7 +458,7 @@ static struct i2c_driver bmp085_driver = { | |||
458 | }, | 458 | }, |
459 | .id_table = bmp085_id, | 459 | .id_table = bmp085_id, |
460 | .probe = bmp085_probe, | 460 | .probe = bmp085_probe, |
461 | .remove = bmp085_remove, | 461 | .remove = __devexit_p(bmp085_remove), |
462 | 462 | ||
463 | .detect = bmp085_detect, | 463 | .detect = bmp085_detect, |
464 | .address_list = normal_i2c | 464 | .address_list = normal_i2c |