]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/media/pci/pluto2/pluto2.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/pluto2/pluto2.c

index 2290faee5852f13124d83503538fbd8bc6cd59af..493828500055297328376740a4e2a58d40a57a16 100644 (file)
@@ -796,18 +796,7 @@ static struct pci_driver pluto2_driver = {
        .remove = pluto2_remove,
 };
 
-static int __init pluto2_init(void)
-{
-       return pci_register_driver(&pluto2_driver);
-}
-
-static void __exit pluto2_exit(void)
-{
-       pci_unregister_driver(&pluto2_driver);
-}
-
-module_init(pluto2_init);
-module_exit(pluto2_exit);
+module_pci_driver(pluto2_driver);
 
 MODULE_AUTHOR("Andreas Oberritter <obi@linuxtv.org>");
 MODULE_DESCRIPTION("Pluto2 driver");