]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/media/pci/pt1/pt1.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Fri, 7 Jun 2013 00:07:15 +0000 (10:07 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Jun 2013 05:41:52 +0000 (15:41 +1000)
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/media/pci/pt1/pt1.c

index e9211086df490c1b7ec9db82f7ab74d82f4fd427..75ce14229e03b6e52c70bcbd3f67cc44bd3e8be7 100644 (file)
@@ -1225,20 +1225,7 @@ static struct pci_driver pt1_driver = {
        .id_table       = pt1_id_table,
 };
 
-
-static int __init pt1_init(void)
-{
-       return pci_register_driver(&pt1_driver);
-}
-
-
-static void __exit pt1_cleanup(void)
-{
-       pci_unregister_driver(&pt1_driver);
-}
-
-module_init(pt1_init);
-module_exit(pt1_cleanup);
+module_pci_driver(pt1_driver);
 
 MODULE_AUTHOR("Takahito HIRANO <hiranotaka@zng.info>");
 MODULE_DESCRIPTION("Earthsoft PT1/PT2 Driver");