Commit 50509e5c authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Mauro Carvalho Chehab

[media] media/m2m: use module_platform_driver macro

This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 7f2b3a7d
......@@ -1108,17 +1108,5 @@ static struct platform_driver deinterlace_pdrv = {
.owner = THIS_MODULE,
},
};
static void __exit deinterlace_exit(void)
{
platform_driver_unregister(&deinterlace_pdrv);
}
static int __init deinterlace_init(void)
{
return platform_driver_register(&deinterlace_pdrv);
}
module_init(deinterlace_init);
module_exit(deinterlace_exit);
module_platform_driver(deinterlace_pdrv);
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