mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 03:11:11 -04:00
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:
committed by
Thomas Zimmermann
parent
9886005f89
commit
e6fbe345b5
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user