[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: 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:52 -03:00 committed by Mauro Carvalho Chehab
parent 50509e5cfe
commit 0e368f302e

View File

@ -1013,16 +1013,4 @@ static struct platform_driver emmaprp_pdrv = {
.owner = THIS_MODULE,
},
};
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);
module_platform_driver(emmaprp_pdrv);