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

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
Loading
Loading
Loading
Loading
+1 −20
Original line number Diff line number Diff line
@@ -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);