Skip to contentSkip to conversation

drm/tegra: Fix module autoload for OF platform driver

PATCH In review Luis de Bethencourt 2 participants 2 messages Sep 17, 2015 – Sep 18, 2015

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

PATCH 5/5 drm/tegra: Fix module autoload for OF platform driver

This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.

---
 drivers/gpu/drm/tegra/drm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/tegra/drm.c +1 -0
index 2486bc2..62d724d 100644
@@ -1064,6 +1064,7 @@ static const struct of_device_id host1x_drm_subdevs[] = {
 	{ .compatible = "nvidia,tegra210-sor1", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, host1x_drm_subdevs);
 
 static struct host1x_driver host1x_drm_driver = {
 	.driver = {
Signature · 1 line
2.4.6
#1 lore raw
Quoted 13 lines · Luis de Bethencourt

This platform driver has a OF device ID table but the OF module alias information is not created so module autoloading won't work.

---
 drivers/gpu/drm/tegra/drm.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/tegra/drm.c +0 -0
index 2486bc2..62d724d 100644

drivers/gpu/drm/tegra/drm.c static const struct of_device_id host1x_drm_subdevs[] = { · line 1067

Quoted 4 lines
drivers/gpu/drm/tegra/drm.c +1 -0
@@ -1064,6 +1064,7 @@ static const struct of_device_id host1x_drm_subdevs[] = {
 	{ .compatible = "nvidia,tegra210-sor1", },
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, host1x_drm_subdevs);

This shouldn't be necessary because the MODULE_DEVICE_TABLE entries are already in the subdrivers.

Thierry

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