diff mbox series

[-next] video: fbdev: add missing MODULE_DEVICE_TABLE

Message ID 20220928151710.1951969-1-zengheng4@huawei.com
State New
Headers show
Series [-next] video: fbdev: add missing MODULE_DEVICE_TABLE | expand

Commit Message

Zeng Heng Sept. 28, 2022, 3:17 p.m. UTC
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@huawei.com>
---
 drivers/video/fbdev/vga16fb.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Helge Deller Oct. 8, 2022, 12:48 p.m. UTC | #1
On 9/28/22 17:17, Zeng Heng wrote:
> 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@huawei.com>

applied.
Thanks!
Helge



>   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,
diff mbox series

Patch

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,