Skip to content

Commit

Permalink
[media] drivers/media: add missing __devexit_p() annotations
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Arnd Bergmann authored and Mauro Carvalho Chehab committed May 15, 2012
1 parent 14f2226 commit cd624c7
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion drivers/media/dvb/ddbridge/ddbridge-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/radio/radio-timb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/radio/saa7706h.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/radio/tef6862.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/mceusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/rc/redrat3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cd624c7

Please sign in to comment.