Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] [RFC] ak8975: Trivial optimisations
@ 2011-01-18  6:58 shubhrajyoti
  2011-01-18 11:15 ` Jonathan Cameron
  0 siblings, 1 reply; 4+ messages in thread
From: shubhrajyoti @ 2011-01-18  6:58 UTC (permalink / raw)
  To: linux-iio; +Cc: achew, Shubhrajyoti Datta

From: Shubhrajyoti Datta <shubhrajyoti@ti.com>

The probe memory could be freed after init.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti@ti.com>
---
Compile tested only.
 drivers/staging/iio/magnetometer/ak8975.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/iio/magnetometer/ak8975.c b/drivers/staging/iio/magnetometer/ak8975.c
index 420f206..694da1e 100644
--- a/drivers/staging/iio/magnetometer/ak8975.c
+++ b/drivers/staging/iio/magnetometer/ak8975.c
@@ -431,7 +431,7 @@ static struct attribute_group ak8975_attr_group = {
 	.attrs = ak8975_attr,
 };
 
-static int ak8975_probe(struct i2c_client *client,
+static int __devinit ak8975_probe(struct i2c_client *client,
 			const struct i2c_device_id *id)
 {
 	struct ak8975_data *data;
@@ -510,7 +510,7 @@ exit:
 	return err;
 }
 
-static int ak8975_remove(struct i2c_client *client)
+static int  __devexit ak8975_remove(struct i2c_client *client)
 {
 	struct ak8975_data *data = i2c_get_clientdata(client);
 
-- 
1.7.1


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

end of thread, other threads:[~2011-01-18 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-18  6:58 [PATCH] [RFC] ak8975: Trivial optimisations shubhrajyoti
2011-01-18 11:15 ` Jonathan Cameron
2011-01-18 11:49   ` Shubhrajyoti
2011-01-18 19:59     ` Andrew Chew

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox