Message ID | 20220928151710.1951969-1-zengheng4@huawei.com |
---|---|
State | New |
Headers | show |
Series | [-next] video: fbdev: add missing MODULE_DEVICE_TABLE | expand |
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 --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,
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(+)