diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-09-20 04:32:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2013-10-17 04:56:40 -0400 |
commit | 06333e0aca2e372f5ee78c64a5e794588831ffb8 (patch) | |
tree | 070720cebc7a00294aa2ba2fa0c6f04a7e3287b4 /drivers/media/pci/cx88 | |
parent | 38b25adce8e5734aab4bb2eb168ee26d33186c7a (diff) |
[media] pci: cx88-video: Use module_pci_driver
module_pci_driver removes some boilerplate and makes code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/pci/cx88')
-rw-r--r-- | drivers/media/pci/cx88/cx88-video.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/media/pci/cx88/cx88-video.c b/drivers/media/pci/cx88/cx88-video.c index ecf21d9f1f34..356725ce608d 100644 --- 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 = { | |||
2039 | #endif | 2039 | #endif |
2040 | }; | 2040 | }; |
2041 | 2041 | ||
2042 | static int __init cx8800_init(void) | 2042 | module_pci_driver(cx8800_pci_driver); |
2043 | { | ||
2044 | printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %s loaded\n", | ||
2045 | CX88_VERSION); | ||
2046 | return pci_register_driver(&cx8800_pci_driver); | ||
2047 | } | ||
2048 | |||
2049 | static void __exit cx8800_fini(void) | ||
2050 | { | ||
2051 | pci_unregister_driver(&cx8800_pci_driver); | ||
2052 | } | ||
2053 | |||
2054 | module_init(cx8800_init); | ||
2055 | module_exit(cx8800_fini); | ||