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>
Esse commit está contido em:
@@ -233,7 +233,7 @@ static const struct iio_info ad7887_info = {
|
||||
.driver_module = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int __devinit ad7887_probe(struct spi_device *spi)
|
||||
static int ad7887_probe(struct spi_device *spi)
|
||||
{
|
||||
struct ad7887_platform_data *pdata = spi->dev.platform_data;
|
||||
struct ad7887_state *st;
|
||||
@@ -340,7 +340,7 @@ error_free:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int __devexit ad7887_remove(struct spi_device *spi)
|
||||
static int ad7887_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
struct ad7887_state *st = iio_priv(indio_dev);
|
||||
@@ -368,7 +368,7 @@ static struct spi_driver ad7887_driver = {
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = ad7887_probe,
|
||||
.remove = __devexit_p(ad7887_remove),
|
||||
.remove = ad7887_remove,
|
||||
.id_table = ad7887_id,
|
||||
};
|
||||
module_spi_driver(ad7887_driver);
|
||||
|
Referência em uma nova issue
Block a user