]> 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>
Wed, 19 Jun 2013 00:05:26 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:41 +0000 (17:12 +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");