Skip to contentSkip to conversation

drm/tilcdc: panel: Add tilcdc- prefix to driver name

PATCH In review Thierry Reding 2 participants 2 messages Jul 29, 2015 – Aug 20, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/tilcdc: panel: Add tilcdc- prefix to driver name

From: Thierry Reding <[email protected]>

The current driver name, "panel", is very generic. This causes problems when the driver is enabled on non-TI device tree platforms if the panel node is called "panel". This causes the driver name match fall-back in platform_match() to succeed, even if some other driver would precisely match using the OF device ID table, for example.

Currently there don't seem to be any in-tree users that rely on the driver name match, so adding the prefix should be safe.

---
 drivers/gpu/drm/tilcdc/tilcdc_panel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tilcdc/tilcdc_panel.c +1 -1
index 7a0315855e90..375505caf9c7 100644
@@ -460,7 +460,7 @@ struct platform_driver panel_driver = {
 	.remove = panel_remove,
 	.driver = {
 		.owner = THIS_MODULE,
-		.name = "panel",
+		.name = "tilcdc-panel",
 		.of_match_table = panel_of_match,
 	},
 };
Signature · 6 lines
2.4.5

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw
Quoted 21 lines · Thierry Reding

From: Thierry Reding <[email protected]>

The current driver name, "panel", is very generic. This causes problems when the driver is enabled on non-TI device tree platforms if the panel node is called "panel". This causes the driver name match fall-back in platform_match() to succeed, even if some other driver would precisely match using the OF device ID table, for example.

Currently there don't seem to be any in-tree users that rely on the driver name match, so adding the prefix should be safe.

---
 drivers/gpu/drm/tilcdc/tilcdc_panel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tilcdc/tilcdc_panel.c +0 -0
index 7a0315855e90..375505caf9c7 100644

drivers/gpu/drm/tilcdc/tilcdc_panel.c struct platform_driver panel_driver = { · line 466

Quoted 8 lines
drivers/gpu/drm/tilcdc/tilcdc_panel.c +1 -1
@@ -460,7 +460,7 @@ struct platform_driver panel_driver = {
 	.remove = panel_remove,
 	.driver = {
 		.owner = THIS_MODULE,
-		.name = "panel",
+		.name = "tilcdc-panel",
 		.of_match_table = panel_of_match,
 	},
 };

I didn't know we do matching based on the node name also...

This looks fine, I believe the tilcdc is only used with DT based systems. I'll pick this up.

Tomi

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel