提交 ec0341b3 编写于 作者: S Sachin Kamat 提交者: Mauro Carvalho Chehab

[media] soc_camera: Use module_platform_driver macro

module_platform_driver simplifies the code by eliminating
module_init and module_exit calls.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 1aeed355
......@@ -1586,18 +1586,7 @@ static struct platform_driver __refdata soc_camera_pdrv = {
},
};
static int __init soc_camera_init(void)
{
return platform_driver_register(&soc_camera_pdrv);
}
static void __exit soc_camera_exit(void)
{
platform_driver_unregister(&soc_camera_pdrv);
}
module_init(soc_camera_init);
module_exit(soc_camera_exit);
module_platform_driver(soc_camera_pdrv);
MODULE_DESCRIPTION("Image capture bus driver");
MODULE_AUTHOR("Guennadi Liakhovetski <kernel@pengutronix.de>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册