Drivers: iio: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
这个提交包含在:
@@ -150,8 +150,8 @@ static const struct iio_info vcnl4000_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int __devinit vcnl4000_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
static int vcnl4000_probe(struct i2c_client *client,
|
||||
const struct i2c_device_id *id)
|
||||
{
|
||||
struct vcnl4000_data *data;
|
||||
struct iio_dev *indio_dev;
|
||||
@@ -190,7 +190,7 @@ error_free_dev:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit vcnl4000_remove(struct i2c_client *client)
|
||||
static int vcnl4000_remove(struct i2c_client *client)
|
||||
{
|
||||
struct iio_dev *indio_dev = i2c_get_clientdata(client);
|
||||
|
||||
@@ -206,7 +206,7 @@ static struct i2c_driver vcnl4000_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = vcnl4000_probe,
|
||||
.remove = __devexit_p(vcnl4000_remove),
|
||||
.remove = vcnl4000_remove,
|
||||
.id_table = vcnl4000_id,
|
||||
};
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户