Skip to contentSkip to conversation

drm/tve200: add OF module alias for autoloading

PATCH In review Can Peng 2 participants 2 messages Jul 15 – Jul 24

Subsystems (3)
lore
Share & tools
lore

Can Peng

author
#0 lore raw

PATCH 1/1 drm/tve200: add OF module alias for autoloading

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")
---
 drivers/gpu/drm/tve200/tve200_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/tve200/tve200_drv.c +1 -0
index 562f3f11812a..f5ef468538f9 100644
@@ -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 = {
Signature · 1 line
2.53.0
maintainer
#1 lore raw
Quoted 9 lines · Can Peng

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")

Patch applied.

Yours,
Linus Walleij