[media] drivers/media: add missing __devexit_p() annotations
authorArnd Bergmann <arnd@arndb.de>
Thu, 3 May 2012 21:22:22 +0000 (18:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 15 May 2012 10:53:51 +0000 (07:53 -0300)
Drivers that refer to a __devexit function in an operations
structure need to annotate that pointer with __devexit_p so
replace it with a NULL pointer when the section gets discarded.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/ddbridge/ddbridge-core.c
drivers/media/radio/radio-timb.c
drivers/media/radio/saa7706h.c
drivers/media/radio/tef6862.c
drivers/media/rc/imon.c
drivers/media/rc/mceusb.c
drivers/media/rc/redrat3.c

index 115777ec75360f171d9a7254d0a3108c84965219..131b938e9e8178384ab90fa206165c2d20861582 100644 (file)
@@ -1695,7 +1695,7 @@ static struct pci_driver ddb_pci_driver = {
        .name        = "DDBridge",
        .id_table    = ddb_id_tbl,
        .probe       = ddb_probe,
-       .remove      = ddb_remove,
+       .remove      = __devexit_p(ddb_remove),
 };
 
 static __init int module_init_ddbridge(void)
index 5d9a90ac3a1c0230b75bffaeff6de7f4cfbb015c..7052adc0c0b0547a09f68534059912d769938482 100644 (file)
@@ -223,7 +223,7 @@ static struct platform_driver timbradio_platform_driver = {
                .owner  = THIS_MODULE,
        },
        .probe          = timbradio_probe,
-       .remove         = timbradio_remove,
+       .remove         = __devexit_p(timbradio_remove),
 };
 
 module_platform_driver(timbradio_platform_driver);
index 9474706350f82c19b9e5b01cbe8bb70966448b6e..bb953ef75f615dd831ecca6204f9aad36bc18a12 100644 (file)
@@ -430,7 +430,7 @@ static struct i2c_driver saa7706h_driver = {
                .name   = DRIVER_NAME,
        },
        .probe          = saa7706h_probe,
-       .remove         = saa7706h_remove,
+       .remove         = __devexit_p(saa7706h_remove),
        .id_table       = saa7706h_id,
 };
 
index 6418c4c9faf1d4d673aca31c1732d237f6a447dc..06d47e5cce9f31433263bde7987033180d427f79 100644 (file)
@@ -211,7 +211,7 @@ static struct i2c_driver tef6862_driver = {
                .name   = DRIVER_NAME,
        },
        .probe          = tef6862_probe,
-       .remove         = tef6862_remove,
+       .remove         = __devexit_p(tef6862_remove),
        .id_table       = tef6862_id,
 };
 
index 7f26fdf2e54e4a9498264f7b92155fb146887d9c..5dd0386604f0514d7421fe0b47f3b9097d6554df 100644 (file)
@@ -255,7 +255,7 @@ static struct usb_device_id imon_usb_id_table[] = {
 static struct usb_driver imon_driver = {
        .name           = MOD_NAME,
        .probe          = imon_probe,
-       .disconnect     = imon_disconnect,
+       .disconnect     = __devexit_p(imon_disconnect),
        .suspend        = imon_suspend,
        .resume         = imon_resume,
        .id_table       = imon_usb_id_table,
index 3e29cc55fdd1af2283bafa60f42c0443bf49dd17..84e06d3aa696bafe0f3360e337293a27332a6d27 100644 (file)
@@ -1442,7 +1442,7 @@ static int mceusb_dev_resume(struct usb_interface *intf)
 static struct usb_driver mceusb_dev_driver = {
        .name =         DRIVER_NAME,
        .probe =        mceusb_dev_probe,
-       .disconnect =   mceusb_dev_disconnect,
+       .disconnect =   __devexit_p(mceusb_dev_disconnect),
        .suspend =      mceusb_dev_suspend,
        .resume =       mceusb_dev_resume,
        .reset_resume = mceusb_dev_resume,
index ad95c67a4dbafacbbd227f81cd703372dd9dc3cc..2878b0ed9741b27e497a171dab39e664f271cb27 100644 (file)
@@ -1277,7 +1277,7 @@ static int redrat3_dev_resume(struct usb_interface *intf)
 static struct usb_driver redrat3_dev_driver = {
        .name           = DRIVER_NAME,
        .probe          = redrat3_dev_probe,
-       .disconnect     = redrat3_dev_disconnect,
+       .disconnect     = __devexit_p(redrat3_dev_disconnect),
        .suspend        = redrat3_dev_suspend,
        .resume         = redrat3_dev_resume,
        .reset_resume   = redrat3_dev_resume,