Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18ace0e2 authored by Sachin Kamat's avatar Sachin Kamat Committed by Mauro Carvalho Chehab
Browse files

[media] davinci_vpfe: Use module_platform_driver macro



module_platform_driver() eliminates the boilerplate and simplifies
the code.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Acked-by: default avatarLad, Prabhakar <prabhakar.lad@ti.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 01c81323
Loading
Loading
Loading
Loading
+1 −19
Original line number Diff line number Diff line
@@ -719,22 +719,4 @@ static struct platform_driver vpfe_driver = {
	.remove = vpfe_remove,
};

/**
 * vpfe_init : This function registers device driver
 */
static __init int vpfe_init(void)
{
	/* Register driver to the kernel */
	return platform_driver_register(&vpfe_driver);
}

/**
 * vpfe_cleanup : This function un-registers device driver
 */
static void vpfe_cleanup(void)
{
	platform_driver_unregister(&vpfe_driver);
}

module_init(vpfe_init);
module_exit(vpfe_cleanup);
module_platform_driver(vpfe_driver);