[media] drivers/media/radio/radio-maxiradio: Convert to module_pci_driver

use module_pci_driver instead of init/exit, make code clean

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
Libo Chen 2013-05-26 22:31:59 -03:00 committed by Mauro Carvalho Chehab
parent 578e99d6cd
commit 725d7b7139
1 changed files with 1 additions and 12 deletions

View File

@ -200,15 +200,4 @@ static struct pci_driver maxiradio_driver = {
.remove = maxiradio_remove,
};
static int __init maxiradio_init(void)
{
return pci_register_driver(&maxiradio_driver);
}
static void __exit maxiradio_exit(void)
{
pci_unregister_driver(&maxiradio_driver);
}
module_init(maxiradio_init);
module_exit(maxiradio_exit);
module_pci_driver(maxiradio_driver);