mirror of https://gitee.com/openkylin/linux.git
drm/v3d: convert to use module_platform_driver
Get rid of boilerplate code by using module_platform_driver macro for v3d_drm. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200810125931.186456-1-miaoqinglang@huawei.com
This commit is contained in:
parent
7995bd1329
commit
ad28cd6942
|
@ -358,18 +358,7 @@ static struct platform_driver v3d_platform_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init v3d_drm_register(void)
|
module_platform_driver(v3d_platform_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&v3d_platform_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit v3d_drm_unregister(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&v3d_platform_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(v3d_drm_register);
|
|
||||||
module_exit(v3d_drm_unregister);
|
|
||||||
|
|
||||||
MODULE_ALIAS("platform:v3d-drm");
|
MODULE_ALIAS("platform:v3d-drm");
|
||||||
MODULE_DESCRIPTION("Broadcom V3D DRM Driver");
|
MODULE_DESCRIPTION("Broadcom V3D DRM Driver");
|
||||||
|
|
Loading…
Reference in New Issue