drm/tegra: Fix module autoload for OF platform driver
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.
Signed-off-by Luis de Bethencourt <[email protected]>
--- drivers/gpu/drm/tegra/drm.c | 1 + 1 file changed, 1 insertion(+)
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);static struct host1x_driver host1x_drm_driver = { .driver = {
Signature · 1 line
2.4.6
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.
Signed-off-by Luis de Bethencourt <[email protected]>--- drivers/gpu/drm/tegra/drm.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/tegra/drm.c +0
-0
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