Commit 0e368f30 authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Mauro Carvalho Chehab

[media] [3.6.0-,3/5] media/mx2_emmaprp: 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 50509e5c
...@@ -1013,16 +1013,4 @@ static struct platform_driver emmaprp_pdrv = { ...@@ -1013,16 +1013,4 @@ static struct platform_driver emmaprp_pdrv = {
.owner = THIS_MODULE, .owner = THIS_MODULE,
}, },
}; };
module_platform_driver(emmaprp_pdrv);
static void __exit emmaprp_exit(void)
{
platform_driver_unregister(&emmaprp_pdrv);
}
static int __init emmaprp_init(void)
{
return platform_driver_register(&emmaprp_pdrv);
}
module_init(emmaprp_init);
module_exit(emmaprp_exit);
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