mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
staging: iio: hmc5843: 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>
This commit is contained in:
parent
dbdc025bb2
commit
1079def493
1 changed files with 3 additions and 3 deletions
|
@ -665,7 +665,7 @@ static const struct iio_info hmc5843_info = {
|
||||||
.driver_module = THIS_MODULE,
|
.driver_module = THIS_MODULE,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int hmc5843_probe(struct i2c_client *client,
|
static int __devinit hmc5843_probe(struct i2c_client *client,
|
||||||
const struct i2c_device_id *id)
|
const struct i2c_device_id *id)
|
||||||
{
|
{
|
||||||
struct hmc5843_data *data;
|
struct hmc5843_data *data;
|
||||||
|
@ -704,7 +704,7 @@ static int hmc5843_probe(struct i2c_client *client,
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int hmc5843_remove(struct i2c_client *client)
|
static int __devexit hmc5843_remove(struct i2c_client *client)
|
||||||
{
|
{
|
||||||
struct iio_dev *indio_dev = i2c_get_clientdata(client);
|
struct iio_dev *indio_dev = i2c_get_clientdata(client);
|
||||||
|
|
||||||
|
@ -755,7 +755,7 @@ static struct i2c_driver hmc5843_driver = {
|
||||||
},
|
},
|
||||||
.id_table = hmc5843_id,
|
.id_table = hmc5843_id,
|
||||||
.probe = hmc5843_probe,
|
.probe = hmc5843_probe,
|
||||||
.remove = hmc5843_remove,
|
.remove = __devexit_p(hmc5843_remove),
|
||||||
.detect = hmc5843_detect,
|
.detect = hmc5843_detect,
|
||||||
.address_list = normal_i2c,
|
.address_list = normal_i2c,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue