Commit 31d0f845 authored by Peter Huewe's avatar Peter Huewe Committed by Jiri Kosina

trivial: media/video/cx88: add __init/__exit macros to cx88 drivers

Trivial patch which adds the __init and __exit macros to the module_init /
module_exit functions to several files in drivers/media/video/cx88/
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
Acked-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 3c78f5d8
...@@ -1371,7 +1371,7 @@ static struct cx8802_driver cx8802_blackbird_driver = { ...@@ -1371,7 +1371,7 @@ static struct cx8802_driver cx8802_blackbird_driver = {
.advise_release = cx8802_blackbird_advise_release, .advise_release = cx8802_blackbird_advise_release,
}; };
static int blackbird_init(void) static int __init blackbird_init(void)
{ {
printk(KERN_INFO "cx2388x blackbird driver version %d.%d.%d loaded\n", printk(KERN_INFO "cx2388x blackbird driver version %d.%d.%d loaded\n",
(CX88_VERSION_CODE >> 16) & 0xff, (CX88_VERSION_CODE >> 16) & 0xff,
...@@ -1384,7 +1384,7 @@ static int blackbird_init(void) ...@@ -1384,7 +1384,7 @@ static int blackbird_init(void)
return cx8802_register_driver(&cx8802_blackbird_driver); return cx8802_register_driver(&cx8802_blackbird_driver);
} }
static void blackbird_fini(void) static void __exit blackbird_fini(void)
{ {
cx8802_unregister_driver(&cx8802_blackbird_driver); cx8802_unregister_driver(&cx8802_blackbird_driver);
} }
......
...@@ -1350,7 +1350,7 @@ static struct cx8802_driver cx8802_dvb_driver = { ...@@ -1350,7 +1350,7 @@ static struct cx8802_driver cx8802_dvb_driver = {
.advise_release = cx8802_dvb_advise_release, .advise_release = cx8802_dvb_advise_release,
}; };
static int dvb_init(void) static int __init dvb_init(void)
{ {
printk(KERN_INFO "cx88/2: cx2388x dvb driver version %d.%d.%d loaded\n", printk(KERN_INFO "cx88/2: cx2388x dvb driver version %d.%d.%d loaded\n",
(CX88_VERSION_CODE >> 16) & 0xff, (CX88_VERSION_CODE >> 16) & 0xff,
...@@ -1363,7 +1363,7 @@ static int dvb_init(void) ...@@ -1363,7 +1363,7 @@ static int dvb_init(void)
return cx8802_register_driver(&cx8802_dvb_driver); return cx8802_register_driver(&cx8802_dvb_driver);
} }
static void dvb_fini(void) static void __exit dvb_fini(void)
{ {
cx8802_unregister_driver(&cx8802_dvb_driver); cx8802_unregister_driver(&cx8802_dvb_driver);
} }
......
...@@ -870,7 +870,7 @@ static struct pci_driver cx8802_pci_driver = { ...@@ -870,7 +870,7 @@ static struct pci_driver cx8802_pci_driver = {
.remove = __devexit_p(cx8802_remove), .remove = __devexit_p(cx8802_remove),
}; };
static int cx8802_init(void) static int __init cx8802_init(void)
{ {
printk(KERN_INFO "cx88/2: cx2388x MPEG-TS Driver Manager version %d.%d.%d loaded\n", printk(KERN_INFO "cx88/2: cx2388x MPEG-TS Driver Manager version %d.%d.%d loaded\n",
(CX88_VERSION_CODE >> 16) & 0xff, (CX88_VERSION_CODE >> 16) & 0xff,
...@@ -883,7 +883,7 @@ static int cx8802_init(void) ...@@ -883,7 +883,7 @@ static int cx8802_init(void)
return pci_register_driver(&cx8802_pci_driver); return pci_register_driver(&cx8802_pci_driver);
} }
static void cx8802_fini(void) static void __exit cx8802_fini(void)
{ {
pci_unregister_driver(&cx8802_pci_driver); pci_unregister_driver(&cx8802_pci_driver);
} }
......
...@@ -2113,7 +2113,7 @@ static struct pci_driver cx8800_pci_driver = { ...@@ -2113,7 +2113,7 @@ static struct pci_driver cx8800_pci_driver = {
#endif #endif
}; };
static int cx8800_init(void) static int __init cx8800_init(void)
{ {
printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %d.%d.%d loaded\n", printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %d.%d.%d loaded\n",
(CX88_VERSION_CODE >> 16) & 0xff, (CX88_VERSION_CODE >> 16) & 0xff,
...@@ -2126,7 +2126,7 @@ static int cx8800_init(void) ...@@ -2126,7 +2126,7 @@ static int cx8800_init(void)
return pci_register_driver(&cx8800_pci_driver); return pci_register_driver(&cx8800_pci_driver);
} }
static void cx8800_fini(void) static void __exit cx8800_fini(void)
{ {
pci_unregister_driver(&cx8800_pci_driver); pci_unregister_driver(&cx8800_pci_driver);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment