[PATCH] drm/tve200: add OF module alias for autoloading

Can Peng posted 1 patch 1 week, 3 days ago
drivers/gpu/drm/tve200/tve200_drv.c | 1 +
1 file changed, 1 insertion(+)
[PATCH] drm/tve200: add OF module alias for autoloading
Posted by Can Peng 1 week, 3 days ago
The TVE200 DRM driver can be built as a module and uses tve200_of_match
as its OF match table, but the table is not exported for module alias
generation.

Add the MODULE_DEVICE_TABLE(of, ...) entry so modpost can generate OF
module aliases for OF based module autoloading.

Fixes: 179c02fe90a4 ("drm/tve200: Add new driver for TVE200")
Signed-off-by: Can Peng <pengcan@kylinos.cn>
---
 drivers/gpu/drm/tve200/tve200_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/tve200/tve200_drv.c b/drivers/gpu/drm/tve200/tve200_drv.c
index 562f3f11812a..f5ef468538f9 100644
--- a/drivers/gpu/drm/tve200/tve200_drv.c
+++ b/drivers/gpu/drm/tve200/tve200_drv.c
@@ -263,6 +263,7 @@ static const struct of_device_id tve200_of_match[] = {
 	},
 	{},
 };
+MODULE_DEVICE_TABLE(of, tve200_of_match);
 
 static struct platform_driver tve200_driver = {
 	.driver = {
-- 
2.53.0
Re: [PATCH] drm/tve200: add OF module alias for autoloading
Posted by Linus Walleij 1 day, 10 hours ago
On Wed, Jul 15, 2026 at 4:41 AM Can Peng <pengcan@kylinos.cn> wrote:

> The TVE200 DRM driver can be built as a module and uses tve200_of_match
> as its OF match table, but the table is not exported for module alias
> generation.
>
> Add the MODULE_DEVICE_TABLE(of, ...) entry so modpost can generate OF
> module aliases for OF based module autoloading.
>
> Fixes: 179c02fe90a4 ("drm/tve200: Add new driver for TVE200")
> Signed-off-by: Can Peng <pengcan@kylinos.cn>

Patch applied.

Yours,
Linus Walleij