projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38b25ad
)
[media] pci: cx88-video: Use module_pci_driver
author
Sachin Kamat
<
[email protected]
>
Fri, 20 Sep 2013 08:32:07 +0000
(
05:32
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 17 Oct 2013 08:56:40 +0000
(
05:56
-0300)
module_pci_driver removes some boilerplate and makes code simpler.
Signed-off-by: Sachin Kamat <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/pci/cx88/cx88-video.c
patch
|
blob
|
history
diff --git
a/drivers/media/pci/cx88/cx88-video.c
b/drivers/media/pci/cx88/cx88-video.c
index ecf21d9f1f34bb1e587edbdc6283a177ceee595b..356725ce608d18f4f1132e3a8db2998ab827c484 100644
(file)
--- a/
drivers/media/pci/cx88/cx88-video.c
+++ b/
drivers/media/pci/cx88/cx88-video.c
@@
-2039,17
+2039,4
@@
static struct pci_driver cx8800_pci_driver = {
#endif
};
-static int __init cx8800_init(void)
-{
- printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %s loaded\n",
- CX88_VERSION);
- return pci_register_driver(&cx8800_pci_driver);
-}
-
-static void __exit cx8800_fini(void)
-{
- pci_unregister_driver(&cx8800_pci_driver);
-}
-
-module_init(cx8800_init);
-module_exit(cx8800_fini);
+module_pci_driver(cx8800_pci_driver);