From: Libo Chen Date: Wed, 19 Jun 2013 00:05:25 +0000 (+1000) Subject: drivers/media/pci/dm1105/dm1105.c: convert to module_pci_driver X-Git-Tag: next-20130619~2^2~640 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c1385d2470fdb004a7dba7b040af0433ac62a4a9;p=karo-tx-linux.git drivers/media/pci/dm1105/dm1105.c: convert to module_pci_driver Signed-off-by: Libo Chen Cc: Mauro Carvalho Chehab Cc: Konstantin Dimitrov Signed-off-by: Andrew Morton --- diff --git a/drivers/media/pci/b2c2/flexcop-pci.c b/drivers/media/pci/b2c2/flexcop-pci.c index 44f8fb5f17ff..447afbd904a4 100644 --- a/drivers/media/pci/b2c2/flexcop-pci.c +++ b/drivers/media/pci/b2c2/flexcop-pci.c @@ -432,18 +432,7 @@ static struct pci_driver flexcop_pci_driver = { .remove = flexcop_pci_remove, }; -static int __init flexcop_pci_module_init(void) -{ - return pci_register_driver(&flexcop_pci_driver); -} - -static void __exit flexcop_pci_module_exit(void) -{ - pci_unregister_driver(&flexcop_pci_driver); -} - -module_init(flexcop_pci_module_init); -module_exit(flexcop_pci_module_exit); +module_pci_driver(flexcop_pci_driver); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_NAME);