[PATCH -next] video: fbdev: add missing MODULE_DEVICE_TABLE
Zeng Heng
zengheng4 at huawei.com
Wed Sep 28 15:17:10 UTC 2022
This patch adds missing MODULE_DEVICE_TABLE definition
which generates correct modalias for automatic loading
of this driver when it is built as an external module.
Signed-off-by: Zeng Heng <zengheng4 at huawei.com>
---
drivers/video/fbdev/vga16fb.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/video/fbdev/vga16fb.c b/drivers/video/fbdev/vga16fb.c
index 35cf51ae3292..af47f8217095 100644
--- a/drivers/video/fbdev/vga16fb.c
+++ b/drivers/video/fbdev/vga16fb.c
@@ -1421,6 +1421,7 @@ static const struct platform_device_id vga16fb_driver_id_table[] = {
{"vga-framebuffer", 0},
{ }
};
+MODULE_DEVICE_TABLE(platform, vga16fb_driver_id_table);
static struct platform_driver vga16fb_driver = {
.probe = vga16fb_probe,
--
2.25.1
More information about the dri-devel
mailing list