media: staging: atomisp: Using module_pci_driver

Remove boilerplate code by using macro module_pci_driver.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
YueHaibing 2018-04-21 05:23:43 -04:00 committed by Mauro Carvalho Chehab
parent e6c023aff1
commit 0de3d73b93
1 changed files with 1 additions and 12 deletions

View File

@ -1554,18 +1554,7 @@ static struct pci_driver atomisp_pci_driver = {
.remove = atomisp_pci_remove, .remove = atomisp_pci_remove,
}; };
static int __init atomisp_init(void) module_pci_driver(atomisp_pci_driver);
{
return pci_register_driver(&atomisp_pci_driver);
}
static void __exit atomisp_exit(void)
{
pci_unregister_driver(&atomisp_pci_driver);
}
module_init(atomisp_init);
module_exit(atomisp_exit);
MODULE_AUTHOR("Wen Wang <wen.w.wang@intel.com>"); MODULE_AUTHOR("Wen Wang <wen.w.wang@intel.com>");
MODULE_AUTHOR("Xiaolin Zhang <xiaolin.zhang@intel.com>"); MODULE_AUTHOR("Xiaolin Zhang <xiaolin.zhang@intel.com>");