[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:
parent
50509e5cfe
commit
0e368f302e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user