Commit b419ee94 authored by Corentin Labbe's avatar Corentin Labbe Committed by Mauro Carvalho Chehab

media: staging: media: zoran: use module_pci_driver

Simplify code by using module_pci_driver()
Signed-off-by: default avatarCorentin Labbe <clabbe@baylibre.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 4d4389f6
......@@ -1314,23 +1314,4 @@ static struct pci_driver zoran_driver = {
.remove = zoran_remove,
};
static int __init zoran_init(void)
{
int res;
res = pci_register_driver(&zoran_driver);
if (res) {
pr_err("Unable to register ZR36057 driver\n");
return res;
}
return 0;
}
static void __exit zoran_exit(void)
{
pci_unregister_driver(&zoran_driver);
}
module_init(zoran_init);
module_exit(zoran_exit);
module_pci_driver(zoran_driver);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment