Skip to content

Commit

Permalink
staging: iio: ak8975: Make it behave better as modules
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shubhrajyoti D authored and Greg Kroah-Hartman committed Jun 5, 2012
1 parent 1079def commit f61343b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/iio/magnetometer/ak8975.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -545,7 +545,7 @@ static int ak8975_probe(struct i2c_client *client,
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);
Expand Down

0 comments on commit f61343b

Please sign in to comment.