summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShubhrajyoti D <shubhrajyoti@ti.com>2012-06-04 15:11:05 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-05 14:06:18 +0900
commitf61343b397975c6360c0f83edebbfdad19baf8f7 (patch)
tree9cdf2731d2e071cb8354b01aa652ebe99d5de23b
parent1079def493b55e7a69e6eefc6e026224e1d90e2a (diff)
downloadop-kernel-dev-f61343b397975c6360c0f83edebbfdad19baf8f7.zip
op-kernel-dev-f61343b397975c6360c0f83edebbfdad19baf8f7.tar.gz
staging: iio: ak8975: Make it behave better as modules
The memory regions of the probe and remove are move to __devinit and __devexit respectively. Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/iio/magnetometer/ak8975.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/iio/magnetometer/ak8975.c b/drivers/staging/iio/magnetometer/ak8975.c
index 5834e4a..7562caf 100644
--- a/drivers/staging/iio/magnetometer/ak8975.c
+++ b/drivers/staging/iio/magnetometer/ak8975.c
@@ -471,7 +471,7 @@ static const struct iio_info ak8975_info = {
.driver_module = THIS_MODULE,
};
-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;
@@ -545,7 +545,7 @@ exit:
return err;
}
-static int ak8975_remove(struct i2c_client *client)
+static int __devexit ak8975_remove(struct i2c_client *client)
{
struct iio_dev *indio_dev = i2c_get_clientdata(client);
struct ak8975_data *data = iio_priv(indio_dev);
OpenPOWER on IntegriCloud