Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Roland Stigge <stigge@antcom.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peter Meerwald and committed by
Greg Kroah-Hartman
f9eb89e9 227d5e00

+3 -3
+3 -3
drivers/iio/dac/max517.c
··· 156 156 MAX517_CHANNEL(1) 157 157 }; 158 158 159 - static int max517_probe(struct i2c_client *client, 159 + static int __devinit max517_probe(struct i2c_client *client, 160 160 const struct i2c_device_id *id) 161 161 { 162 162 struct max517_data *data; ··· 210 210 return err; 211 211 } 212 212 213 - static int max517_remove(struct i2c_client *client) 213 + static int __devexit max517_remove(struct i2c_client *client) 214 214 { 215 215 iio_device_unregister(i2c_get_clientdata(client)); 216 216 iio_device_free(i2c_get_clientdata(client)); ··· 232 232 .pm = MAX517_PM_OPS, 233 233 }, 234 234 .probe = max517_probe, 235 - .remove = max517_remove, 235 + .remove = __devexit_p(max517_remove), 236 236 .id_table = max517_id, 237 237 }; 238 238 module_i2c_driver(max517_driver);