提交 7f2b3a7d 编写于 作者: S Srinivas Kandagatla 提交者: Mauro Carvalho Chehab

[media] media/bfin: use module_platform_driver macro

This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: NSrinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 32d640de
......@@ -1050,19 +1050,7 @@ static struct platform_driver bcap_driver = {
.probe = bcap_probe,
.remove = __devexit_p(bcap_remove),
};
static __init int bcap_init(void)
{
return platform_driver_register(&bcap_driver);
}
static __exit void bcap_exit(void)
{
platform_driver_unregister(&bcap_driver);
}
module_init(bcap_init);
module_exit(bcap_exit);
module_platform_driver(bcap_driver);
MODULE_DESCRIPTION("Analog Devices blackfin video capture driver");
MODULE_AUTHOR("Scott Jiang <Scott.Jiang.Linux@gmail.com>");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册