drm: verisilicon: make vs_dc_platform_driver static

The platform_driver struct isn't export and is only used for module
init/exit functions generated by module_platform_driver() macro.

Make it static to prevent namespace pollution.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603180616.TM6qYvIY-lkp@intel.com/
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260324060806.2047121-1-zhengxingda@iscas.ac.cn
This commit is contained in:
Icenowy Zheng
2026-03-24 14:08:06 +08:00
committed by Thomas Zimmermann
parent 9886005f89
commit e6fbe345b5

View File

@@ -190,7 +190,7 @@ static void vs_dc_shutdown(struct platform_device *pdev)
vs_drm_shutdown_handler(dc);
}
struct platform_driver vs_dc_platform_driver = {
static struct platform_driver vs_dc_platform_driver = {
.probe = vs_dc_probe,
.remove = vs_dc_remove,
.shutdown = vs_dc_shutdown,