Skip to content

Commit

Permalink
fbdev: vga16fb: Add missing MODULE_DEVICE_TABLE() entry
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Helge Deller <deller@gmx.de>
  • Loading branch information
Zeng Heng authored and Helge Deller committed Oct 8, 2022
1 parent e82b0c3 commit 3b29f36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/video/fbdev/vga16fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3b29f36

Please sign in to comment.