Commit f61343b3 authored by Shubhrajyoti D's avatar Shubhrajyoti D Committed by Greg Kroah-Hartman

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: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarShubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1079def4
...@@ -471,7 +471,7 @@ static const struct iio_info ak8975_info = { ...@@ -471,7 +471,7 @@ static const struct iio_info ak8975_info = {
.driver_module = THIS_MODULE, .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) const struct i2c_device_id *id)
{ {
struct ak8975_data *data; struct ak8975_data *data;
...@@ -545,7 +545,7 @@ static int ak8975_probe(struct i2c_client *client, ...@@ -545,7 +545,7 @@ static int ak8975_probe(struct i2c_client *client,
return err; 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 iio_dev *indio_dev = i2c_get_clientdata(client);
struct ak8975_data *data = iio_priv(indio_dev); struct ak8975_data *data = iio_priv(indio_dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment