提交 0de3d73b 编写于 作者: Y YueHaibing 提交者: Mauro Carvalho Chehab

media: staging: atomisp: Using module_pci_driver

Remove boilerplate code by using macro module_pci_driver.
Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 e6c023af
......@@ -1554,18 +1554,7 @@ static struct pci_driver atomisp_pci_driver = {
.remove = atomisp_pci_remove,
};
static int __init atomisp_init(void)
{
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_pci_driver(atomisp_pci_driver);
MODULE_AUTHOR("Wen Wang <wen.w.wang@intel.com>");
MODULE_AUTHOR("Xiaolin Zhang <xiaolin.zhang@intel.com>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册