Re: [PATCH] [RFC] ak8975: Trivial optimisations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 18 January 2011 04:45 PM, Jonathan Cameron wrote:
On 01/18/11 06:58, shubhrajyoti@xxxxxx wrote:
From: Shubhrajyoti Datta<shubhrajyoti@xxxxxx>

The probe memory could be freed after init.

Signed-off-by: Shubhrajyoti Datta<shubhrajyoti@xxxxxx>
Acked-by: Jonathan Cameron<jic23@xxxxxxxxx>

Probably best to wait for Andrew to reply before sending this one on...
Yes , sure.
---
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);


--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux