Commit f9eb89e9 authored by Peter Meerwald's avatar Peter Meerwald Committed by Greg Kroah-Hartman

iio: max517: mark probe() and remove() with __devinit and __devexit

Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Acked-by: default avatarRoland Stigge <stigge@antcom.de>
Acked-by: default avatarJonathan Cameron <jic23@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 227d5e00
...@@ -156,7 +156,7 @@ static const struct iio_chan_spec max517_channels[] = { ...@@ -156,7 +156,7 @@ static const struct iio_chan_spec max517_channels[] = {
MAX517_CHANNEL(1) MAX517_CHANNEL(1)
}; };
static int max517_probe(struct i2c_client *client, static int __devinit max517_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct max517_data *data; struct max517_data *data;
...@@ -210,7 +210,7 @@ static int max517_probe(struct i2c_client *client, ...@@ -210,7 +210,7 @@ static int max517_probe(struct i2c_client *client,
return err; return err;
} }
static int max517_remove(struct i2c_client *client) static int __devexit max517_remove(struct i2c_client *client)
{ {
iio_device_unregister(i2c_get_clientdata(client)); iio_device_unregister(i2c_get_clientdata(client));
iio_device_free(i2c_get_clientdata(client)); iio_device_free(i2c_get_clientdata(client));
...@@ -232,7 +232,7 @@ static struct i2c_driver max517_driver = { ...@@ -232,7 +232,7 @@ static struct i2c_driver max517_driver = {
.pm = MAX517_PM_OPS, .pm = MAX517_PM_OPS,
}, },
.probe = max517_probe, .probe = max517_probe,
.remove = max517_remove, .remove = __devexit_p(max517_remove),
.id_table = max517_id, .id_table = max517_id,
}; };
module_i2c_driver(max517_driver); module_i2c_driver(max517_driver);
......
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