mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-15 15:36:56 +07:00
[media] sh_mobile_ceu_camera: use module_platform_driver
Use module_platform_driver() helper to simplify the code. Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
54449af0e0
commit
855749a756
@ -1801,18 +1801,7 @@ static struct platform_driver sh_mobile_ceu_driver = {
|
|||||||
.remove = sh_mobile_ceu_remove,
|
.remove = sh_mobile_ceu_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init sh_mobile_ceu_init(void)
|
module_platform_driver(sh_mobile_ceu_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&sh_mobile_ceu_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit sh_mobile_ceu_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&sh_mobile_ceu_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(sh_mobile_ceu_init);
|
|
||||||
module_exit(sh_mobile_ceu_exit);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("SuperH Mobile CEU driver");
|
MODULE_DESCRIPTION("SuperH Mobile CEU driver");
|
||||||
MODULE_AUTHOR("Magnus Damm");
|
MODULE_AUTHOR("Magnus Damm");
|
||||||
|
Loading…
Reference in New Issue
Block a user