[media] media/m2m: use module_platform_driver macro

This patch removes some code duplication by using
module_platform_driver.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Srinivas Kandagatla 2012-10-10 14:33:46 -03:00 committed by Mauro Carvalho Chehab
parent 7f2b3a7d8c
commit 50509e5cfe

View file

@ -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);