From c1ae1c2b7114c8b07f31ed049eebc54952faf92d Mon Sep 17 00:00:00 2001 From: Guixin Liu Date: Mon, 3 Jul 2023 18:59:38 +0800 Subject: [PATCH] ast: test error function Signed-off-by: Guixin Liu --- src/ast_drv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ast_drv.c b/src/ast_drv.c index 01c3751..22815e6 100644 --- a/src/ast_drv.c +++ b/src/ast_drv.c @@ -242,6 +242,11 @@ static struct drm_driver driver = { DRM_GEM_VRAM_DRIVER }; +void init_name(void) +{ + name = 1; +} + static int __init ast_init(void) { if (vgacon_text_force() && ast_modeset == -1) @@ -249,6 +254,8 @@ static int __init ast_init(void) if (ast_modeset == 0) return -EINVAL; + + init_name(); return pci_register_driver(&ast_pci_driver); } static void __exit ast_exit(void) -- Gitee