iio: hid-sensor: Use __devexit annotation for remove()
Subsystems (2)
PATCH 1/1 iio: hid-sensor: Use __devexit annotation for remove()
Use __devexit rather than __devinit annotation for remove(). Also adds __devexit_p around remove callback.
Signed-off-by Axel Lin <[email protected]>
--- drivers/iio/accel/hid-sensor-accel-3d.c | 4 ++-- drivers/iio/gyro/hid-sensor-gyro-3d.c | 4 ++-- drivers/iio/light/hid-sensor-als.c | 4 ++-- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)
drivers/iio/accel/hid-sensor-accel-3d.c +2 -2
@@ -388,7 +388,7 @@ error_ret: }/* Function to deinitialize the processing for usage id */ -static int __devinit hid_accel_3d_remove (struct platform_device *pdev) +static int __devexit hid_accel_3d_remove(struct platform_device *pdev) {struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;struct iio_dev *indio_dev =platform_get_drvdata (pdev);
@@ -409,7 +409,7 @@ static struct platform_driver hid_accel_3d_platform_driver = { .owner = THIS_MODULE, }, .probe = hid_accel_3d_probe, - .remove = hid_accel_3d_remove, + .remove = __devexit_p(hid_accel_3d_remove), };module_platform_driver (hid_accel_3d_platform_driver);
drivers/iio/gyro/hid-sensor-gyro-3d.c +2 -2
@@ -388,7 +388,7 @@ error_ret: }/* Function to deinitialize the processing for usage id */ -static int __devinit hid_gyro_3d_remove (struct platform_device *pdev) +static int __devexit hid_gyro_3d_remove(struct platform_device *pdev) {struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;struct iio_dev *indio_dev =platform_get_drvdata (pdev);
@@ -409,7 +409,7 @@ static struct platform_driver hid_gyro_3d_platform_driver = { .owner = THIS_MODULE, }, .probe = hid_gyro_3d_probe, - .remove = hid_gyro_3d_remove, + .remove = __devexit_p(hid_gyro_3d_remove), };module_platform_driver (hid_gyro_3d_platform_driver);
drivers/iio/light/hid-sensor-als.c +2 -2
@@ -355,7 +355,7 @@ error_ret: }/* Function to deinitialize the processing for usage id */ -static int __devinit hid_als_remove (struct platform_device *pdev) +static int __devexit hid_als_remove(struct platform_device *pdev) {struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;struct iio_dev *indio_dev =platform_get_drvdata (pdev);
@@ -376,7 +376,7 @@ static struct platform_driver hid_als_platform_driver = { .owner = THIS_MODULE, }, .probe = hid_als_probe, - .remove = hid_als_remove, + .remove = __devexit_p(hid_als_remove), };module_platform_driver (hid_als_platform_driver);
drivers/iio/magnetometer/hid-sensor-magn-3d.c +2 -2
@@ -389,7 +389,7 @@ error_ret: }/* Function to deinitialize the processing for usage id */ -static int __devinit hid_magn_3d_remove (struct platform_device *pdev) +static int __devexit hid_magn_3d_remove(struct platform_device *pdev) {struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;struct iio_dev *indio_dev =platform_get_drvdata (pdev);
@@ -410,7 +410,7 @@ static struct platform_driver hid_magn_3d_platform_driver = { .owner = THIS_MODULE, }, .probe = hid_magn_3d_probe, - .remove = hid_magn_3d_remove, + .remove = __devexit_p(hid_magn_3d_remove), };module_platform_driver (hid_magn_3d_platform_driver);
Signature · 1 line
1.7.9.5
Jonathan Cameron
maintainerQuoted 4 lines · Axel Lin
Use
__devexitrather than__devinitannotation forremove(). Also adds__devexit_paround remove callback.Signed-off-by Axel Lin <[email protected]>
Added to fixes-togreg branch of iio.git
oops on this one. Should have picked that up in review. Thanks Axel!
Quoted 96 lines
--- drivers/iio/accel/hid-sensor-accel-3d.c | 4 ++-- drivers/iio/gyro/hid-sensor-gyro-3d.c | 4 ++-- drivers/iio/light/hid-sensor-als.c | 4 ++-- drivers/iio/magnetometer/hid-sensor-magn-3d.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-)drivers/iio/accel/hid-sensor-accel-3d.c +2
-2@@ -388,7 +388,7 @@ error_ret: }/* Function to deinitialize the processing for usage id */ -static int __devinit hid_accel_3d_remove (struct platform_device *pdev) +static int __devexit hid_accel_3d_remove(struct platform_device *pdev) {struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;struct iio_dev *indio_dev =platform_get_drvdata (pdev);@@ -409,7 +409,7 @@ static struct platform_driver hid_accel_3d_platform_driver = { .owner = THIS_MODULE, }, .probe = hid_accel_3d_probe, - .remove = hid_accel_3d_remove, + .remove = __devexit_p(hid_accel_3d_remove), };module_platform_driver (hid_accel_3d_platform_driver);drivers/iio/gyro/hid-sensor-gyro-3d.c +2
-2@@ -388,7 +388,7 @@ error_ret: }/* Function to deinitialize the processing for usage id */ -static int __devinit hid_gyro_3d_remove (struct platform_device *pdev) +static int __devexit hid_gyro_3d_remove(struct platform_device *pdev) {struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;struct iio_dev *indio_dev =platform_get_drvdata (pdev);@@ -409,7 +409,7 @@ static struct platform_driver hid_gyro_3d_platform_driver = { .owner = THIS_MODULE, }, .probe = hid_gyro_3d_probe, - .remove = hid_gyro_3d_remove, + .remove = __devexit_p(hid_gyro_3d_remove), };module_platform_driver (hid_gyro_3d_platform_driver);drivers/iio/light/hid-sensor-als.c +2
-2@@ -355,7 +355,7 @@ error_ret: }/* Function to deinitialize the processing for usage id */ -static int __devinit hid_als_remove (struct platform_device *pdev) +static int __devexit hid_als_remove(struct platform_device *pdev) {struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;struct iio_dev *indio_dev =platform_get_drvdata (pdev);@@ -376,7 +376,7 @@ static struct platform_driver hid_als_platform_driver = { .owner = THIS_MODULE, }, .probe = hid_als_probe, - .remove = hid_als_remove, + .remove = __devexit_p(hid_als_remove), };module_platform_driver (hid_als_platform_driver);drivers/iio/magnetometer/hid-sensor-magn-3d.c +2
-2@@ -389,7 +389,7 @@ error_ret: }/* Function to deinitialize the processing for usage id */ -static int __devinit hid_magn_3d_remove (struct platform_device *pdev) +static int __devexit hid_magn_3d_remove(struct platform_device *pdev) {struct hid_sensor_hub_device *hsdev = pdev->dev.platform_data;struct iio_dev *indio_dev =platform_get_drvdata (pdev);@@ -410,7 +410,7 @@ static struct platform_driver hid_magn_3d_platform_driver = { .owner = THIS_MODULE, }, .probe = hid_magn_3d_probe, - .remove = hid_magn_3d_remove, + .remove = __devexit_p(hid_magn_3d_remove), };module_platform_driver (hid_magn_3d_platform_driver);