From: Libo Chen Date: Wed, 19 Jun 2013 00:05:25 +0000 (+1000) Subject: drivers/media/pci/mantis/mantis_cards.c: convert to module_pci_driver X-Git-Tag: next-20130619~2^2~641 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=117b7a22b270ce9b37fa8b7ff2c322621a1c9a7c;p=karo-tx-linux.git drivers/media/pci/mantis/mantis_cards.c: convert to module_pci_driver Signed-off-by: Libo Chen Cc: Mauro Carvalho Chehab Signed-off-by: Andrew Morton --- diff --git a/drivers/media/pci/mantis/mantis_cards.c b/drivers/media/pci/mantis/mantis_cards.c index 932a0d73a7f8..801fc55b6167 100644 --- a/drivers/media/pci/mantis/mantis_cards.c +++ b/drivers/media/pci/mantis/mantis_cards.c @@ -290,18 +290,7 @@ static struct pci_driver mantis_pci_driver = { .remove = mantis_pci_remove, }; -static int mantis_init(void) -{ - return pci_register_driver(&mantis_pci_driver); -} - -static void mantis_exit(void) -{ - return pci_unregister_driver(&mantis_pci_driver); -} - -module_init(mantis_init); -module_exit(mantis_exit); +module_pci_driver(mantis_pci_driver); MODULE_DESCRIPTION("MANTIS driver"); MODULE_AUTHOR("Manu Abraham");