diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-07-10 01:43:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-07-30 20:27:34 -0400 |
commit | 1a3acd3d7f1f7ba1037cfd8c04a9159988f70079 (patch) | |
tree | 90c1fc56eec2567512a6b92360982ad8193b4747 /drivers/staging | |
parent | cadc7920acd7d8fadfe98a33068af764e3247da0 (diff) |
[media] staging/media/dt3155v4l: use module_pci_driver macro
the driver duplicates the module_pci_driver code,
remove the duplicate code and use the module_pci_driver macro.
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/dt3155v4l/dt3155v4l.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/staging/media/dt3155v4l/dt3155v4l.c b/drivers/staging/media/dt3155v4l/dt3155v4l.c index c365cdf714ea..ebe5a27c06f5 100644 --- a/drivers/staging/media/dt3155v4l/dt3155v4l.c +++ b/drivers/staging/media/dt3155v4l/dt3155v4l.c | |||
@@ -971,20 +971,7 @@ static struct pci_driver pci_driver = { | |||
971 | .remove = __devexit_p(dt3155_remove), | 971 | .remove = __devexit_p(dt3155_remove), |
972 | }; | 972 | }; |
973 | 973 | ||
974 | static int __init | 974 | module_pci_driver(pci_driver); |
975 | dt3155_init_module(void) | ||
976 | { | ||
977 | return pci_register_driver(&pci_driver); | ||
978 | } | ||
979 | |||
980 | static void __exit | ||
981 | dt3155_exit_module(void) | ||
982 | { | ||
983 | pci_unregister_driver(&pci_driver); | ||
984 | } | ||
985 | |||
986 | module_init(dt3155_init_module); | ||
987 | module_exit(dt3155_exit_module); | ||
988 | 975 | ||
989 | MODULE_DESCRIPTION("video4linux pci-driver for dt3155 frame grabber"); | 976 | MODULE_DESCRIPTION("video4linux pci-driver for dt3155 frame grabber"); |
990 | MODULE_AUTHOR("Marin Mitov <mitov@issp.bas.bg>"); | 977 | MODULE_AUTHOR("Marin Mitov <mitov@issp.bas.bg>"); |