mirror of https://gitee.com/openkylin/linux.git
[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:
parent
7f2b3a7d8c
commit
50509e5cfe
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue