staging:iio: Add missing __devinit and __devexit annotations
Autogenerated using the following coccinelle semantic patch: // <smpl> @r1@ identifier driver; identifier fn; position p; type T; @@ T driver = { .remove = ( fn@p | __devexit_p(fn@p) ) }; @r2@ identifier r1.fn; position p != r1.p; @@ fn@p @r3@ identifier r1.fn; position r1.p; @@ ( __devexit_p(fn@p) | -fn@p +__devexit_p(fn) ) @depends on !r2@ identifier r1.fn; @@ static -int fn +int __devexit fn (...) { ... } @r11@ identifier driver; identifier fn; position p; type T; @@ T driver = { .probe = fn@p }; @r12@ identifier r11.fn; position p != r11.p; @@ fn@p @depends on !r12@ identifier r11.fn; @@ static -int fn +int __devinit fn (...) { ... } // </smpl> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
161e7f6d13
commit
8e82875268
|
@ -565,7 +565,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adis16201_remove(struct spi_device *spi)
|
||||
static int __devexit adis16201_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
||||
|
|
|
@ -500,7 +500,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adis16203_remove(struct spi_device *spi)
|
||||
static int __devexit adis16203_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
||||
|
|
|
@ -558,7 +558,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adis16204_remove(struct spi_device *spi)
|
||||
static int __devexit adis16204_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
||||
|
|
|
@ -573,7 +573,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adis16209_remove(struct spi_device *spi)
|
||||
static int __devexit adis16209_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
||||
|
|
|
@ -663,7 +663,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adis16220_remove(struct spi_device *spi)
|
||||
static int __devexit adis16220_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
||||
|
|
|
@ -619,7 +619,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adis16240_remove(struct spi_device *spi)
|
||||
static int __devexit adis16240_remove(struct spi_device *spi)
|
||||
{
|
||||
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
|
|
@ -780,7 +780,7 @@ err_ret:
|
|||
}
|
||||
|
||||
/* fixme, confirm ordering in this function */
|
||||
static int lis3l02dq_remove(struct spi_device *spi)
|
||||
static int __devexit lis3l02dq_remove(struct spi_device *spi)
|
||||
{
|
||||
int ret;
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
|
|
@ -1233,7 +1233,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int sca3000_remove(struct spi_device *spi)
|
||||
static int __devexit sca3000_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
struct sca3000_state *st = iio_priv(indio_dev);
|
||||
|
|
|
@ -684,7 +684,7 @@ error_put_reg:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int ad7192_remove(struct spi_device *spi)
|
||||
static int __devexit ad7192_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
struct ad7192_state *st = iio_priv(indio_dev);
|
||||
|
|
|
@ -196,7 +196,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int ad7476_remove(struct spi_device *spi)
|
||||
static int __devexit ad7476_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
struct ad7476_state *st = iio_priv(indio_dev);
|
||||
|
|
|
@ -225,7 +225,7 @@ error_put_reg:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int ad7780_remove(struct spi_device *spi)
|
||||
static int __devexit ad7780_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
struct ad7780_state *st = iio_priv(indio_dev);
|
||||
|
|
|
@ -522,7 +522,7 @@ error_put_reg:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int ad7793_remove(struct spi_device *spi)
|
||||
static int __devexit ad7793_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
struct ad7793_state *st = iio_priv(indio_dev);
|
||||
|
|
|
@ -219,7 +219,7 @@ error_put_reg:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int ad7887_remove(struct spi_device *spi)
|
||||
static int __devexit ad7887_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
struct ad7887_state *st = iio_priv(indio_dev);
|
||||
|
|
|
@ -1367,7 +1367,7 @@ error_out:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int max1363_remove(struct i2c_client *client)
|
||||
static int __devexit max1363_remove(struct i2c_client *client)
|
||||
{
|
||||
struct iio_dev *indio_dev = i2c_get_clientdata(client);
|
||||
struct max1363_state *st = iio_priv(indio_dev);
|
||||
|
@ -1434,7 +1434,7 @@ static struct i2c_driver max1363_driver = {
|
|||
.name = "max1363",
|
||||
},
|
||||
.probe = max1363_probe,
|
||||
.remove = max1363_remove,
|
||||
.remove = __devexit_p(max1363_remove),
|
||||
.id_table = max1363_id,
|
||||
};
|
||||
module_i2c_driver(max1363_driver);
|
||||
|
|
|
@ -184,7 +184,7 @@ error_ret:
|
|||
}
|
||||
|
||||
/* fixme, confirm ordering in this function */
|
||||
static int adis16060_r_remove(struct spi_device *spi)
|
||||
static int __devexit adis16060_r_remove(struct spi_device *spi)
|
||||
{
|
||||
iio_device_unregister(spi_get_drvdata(spi));
|
||||
iio_device_free(spi_get_drvdata(spi));
|
||||
|
@ -210,7 +210,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adis16060_w_remove(struct spi_device *spi)
|
||||
static int __devexit adis16060_w_remove(struct spi_device *spi)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -177,7 +177,7 @@ error_ret:
|
|||
}
|
||||
|
||||
/* fixme, confirm ordering in this function */
|
||||
static int adis16080_remove(struct spi_device *spi)
|
||||
static int __devexit adis16080_remove(struct spi_device *spi)
|
||||
{
|
||||
iio_device_unregister(spi_get_drvdata(spi));
|
||||
iio_device_free(spi_get_drvdata(spi));
|
||||
|
|
|
@ -154,7 +154,7 @@ error_ret:
|
|||
}
|
||||
|
||||
/* fixme, confirm ordering in this function */
|
||||
static int adis16130_remove(struct spi_device *spi)
|
||||
static int __devexit adis16130_remove(struct spi_device *spi)
|
||||
{
|
||||
iio_device_unregister(spi_get_drvdata(spi));
|
||||
iio_device_free(spi_get_drvdata(spi));
|
||||
|
|
|
@ -698,7 +698,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adis16260_remove(struct spi_device *spi)
|
||||
static int __devexit adis16260_remove(struct spi_device *spi)
|
||||
{
|
||||
int ret;
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
|
|
@ -409,7 +409,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int adxrs450_remove(struct spi_device *spi)
|
||||
static int __devexit adxrs450_remove(struct spi_device *spi)
|
||||
{
|
||||
iio_device_unregister(spi_get_drvdata(spi));
|
||||
iio_device_free(spi_get_drvdata(spi));
|
||||
|
|
|
@ -1204,7 +1204,7 @@ error_ret:
|
|||
}
|
||||
|
||||
/* fixme, confirm ordering in this function */
|
||||
static int adis16400_remove(struct spi_device *spi)
|
||||
static int __devexit adis16400_remove(struct spi_device *spi)
|
||||
{
|
||||
int ret;
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
|
|
@ -805,7 +805,7 @@ fail1:
|
|||
return err;
|
||||
}
|
||||
|
||||
static int tsl2563_remove(struct i2c_client *client)
|
||||
static int __devexit tsl2563_remove(struct i2c_client *client)
|
||||
{
|
||||
struct tsl2563_chip *chip = i2c_get_clientdata(client);
|
||||
struct iio_dev *indio_dev = iio_priv_to_dev(chip);
|
||||
|
|
|
@ -553,7 +553,7 @@ error_ret:
|
|||
}
|
||||
|
||||
/* fixme, confirm ordering in this function */
|
||||
static int ade7753_remove(struct spi_device *spi)
|
||||
static int __devexit ade7753_remove(struct spi_device *spi)
|
||||
{
|
||||
int ret;
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
|
|
@ -575,7 +575,7 @@ error_ret:
|
|||
}
|
||||
|
||||
/* fixme, confirm ordering in this function */
|
||||
static int ade7754_remove(struct spi_device *spi)
|
||||
static int __devexit ade7754_remove(struct spi_device *spi)
|
||||
{
|
||||
int ret;
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
|
|
@ -962,7 +962,7 @@ error_ret:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int ade7758_remove(struct spi_device *spi)
|
||||
static int __devexit ade7758_remove(struct spi_device *spi)
|
||||
{
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
struct ade7758_state *st = iio_priv(indio_dev);
|
||||
|
|
|
@ -497,7 +497,7 @@ error_ret:
|
|||
}
|
||||
|
||||
/* fixme, confirm ordering in this function */
|
||||
static int ade7759_remove(struct spi_device *spi)
|
||||
static int __devexit ade7759_remove(struct spi_device *spi)
|
||||
{
|
||||
int ret;
|
||||
struct iio_dev *indio_dev = spi_get_drvdata(spi);
|
||||
|
|
|
@ -330,7 +330,7 @@ static int __devinit ade7854_spi_probe(struct spi_device *spi)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int ade7854_spi_remove(struct spi_device *spi)
|
||||
static int __devexit ade7854_spi_remove(struct spi_device *spi)
|
||||
{
|
||||
ade7854_remove(spi_get_drvdata(spi));
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ static const struct iio_trigger_ops iio_gpio_trigger_ops = {
|
|||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int iio_gpio_trigger_probe(struct platform_device *pdev)
|
||||
static int __devinit iio_gpio_trigger_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct iio_gpio_trigger_info *trig_info;
|
||||
struct iio_trigger *trig, *trig2;
|
||||
|
@ -130,7 +130,7 @@ error_free_completed_registrations:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int iio_gpio_trigger_remove(struct platform_device *pdev)
|
||||
static int __devexit iio_gpio_trigger_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct iio_trigger *trig, *trig2;
|
||||
struct iio_gpio_trigger_info *trig_info;
|
||||
|
@ -153,7 +153,7 @@ static int iio_gpio_trigger_remove(struct platform_device *pdev)
|
|||
|
||||
static struct platform_driver iio_gpio_trigger_driver = {
|
||||
.probe = iio_gpio_trigger_probe,
|
||||
.remove = iio_gpio_trigger_remove,
|
||||
.remove = __devexit_p(iio_gpio_trigger_remove),
|
||||
.driver = {
|
||||
.name = "iio_gpio_trigger",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
|
@ -101,7 +101,7 @@ static const struct iio_trigger_ops iio_prtc_trigger_ops = {
|
|||
.set_trigger_state = &iio_trig_periodic_rtc_set_state,
|
||||
};
|
||||
|
||||
static int iio_trig_periodic_rtc_probe(struct platform_device *dev)
|
||||
static int __devinit iio_trig_periodic_rtc_probe(struct platform_device *dev)
|
||||
{
|
||||
char **pdata = dev->dev.platform_data;
|
||||
struct iio_prtc_trigger_info *trig_info;
|
||||
|
@ -167,7 +167,7 @@ error_free_completed_registrations:
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int iio_trig_periodic_rtc_remove(struct platform_device *dev)
|
||||
static int __devexit iio_trig_periodic_rtc_remove(struct platform_device *dev)
|
||||
{
|
||||
struct iio_trigger *trig, *trig2;
|
||||
struct iio_prtc_trigger_info *trig_info;
|
||||
|
@ -188,7 +188,7 @@ static int iio_trig_periodic_rtc_remove(struct platform_device *dev)
|
|||
|
||||
static struct platform_driver iio_trig_periodic_rtc_driver = {
|
||||
.probe = iio_trig_periodic_rtc_probe,
|
||||
.remove = iio_trig_periodic_rtc_remove,
|
||||
.remove = __devexit_p(iio_trig_periodic_rtc_remove),
|
||||
.driver = {
|
||||
.name = "iio_prtc_trigger",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
Loading…
Reference in New Issue