All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH] lm75: some optimisations
@ 2010-09-09 17:24 Shubhrajyoti D
  2010-09-09 17:55   ` Guenter Roeck
  0 siblings, 1 reply; 9+ messages in thread
From: Shubhrajyoti D @ 2010-09-09 17:24 UTC (permalink / raw)
  To: lm-sensors

- updating with Guenter's comments

Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
---
 drivers/hwmon/lm75.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index ab5b87a..028f961 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -134,7 +134,7 @@ static const struct attribute_group lm75_group = {
 
 /* device probe and removal */
 
-static int
+static int __devinit
 lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
 {
 	struct lm75_data *data;
@@ -196,7 +196,7 @@ exit_free:
 	return status;
 }
 
-static int lm75_remove(struct i2c_client *client)
+static int __devexit lm75_remove(struct i2c_client *client)
 {
 	struct lm75_data *data = i2c_get_clientdata(client);
 
@@ -325,7 +325,7 @@ static struct i2c_driver lm75_driver = {
 		.pm	= LM75_DEV_PM_OPS,
 	},
 	.probe		= lm75_probe,
-	.remove		= lm75_remove,
+	.remove		=  __devexit_p(lm75_remove),
 	.id_table	= lm75_ids,
 	.detect		= lm75_detect,
 	.address_list	= normal_i2c,
-- 
1.7.0.4


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-09-13  8:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-09 17:24 [lm-sensors] [PATCH] lm75: some optimisations Shubhrajyoti D
2010-09-09 17:55 ` Guenter Roeck
2010-09-09 17:55   ` Guenter Roeck
2010-09-09 18:11   ` Jean Delvare
2010-09-09 18:11     ` Jean Delvare
2010-09-13  4:10     ` Valdis.Kletnieks
2010-09-13  4:10       ` Valdis.Kletnieks
2010-09-13  8:03       ` Jean Delvare
2010-09-13  8:03         ` Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.