Skip to contentSkip to conversation

drm: atmel-hlcdc: Fix module autoload for OF platform driver

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

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

PATCH 1/5 drm: atmel-hlcdc: 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/atmel-hlcdc/atmel_hlcdc_dc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -0
index 8bc62ec..a83c431 100644
@@ -342,6 +342,7 @@ static const struct of_device_id atmel_hlcdc_of_match[] = {
 	},
 	{ /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, atmel_hlcdc_of_match);
 
 int atmel_hlcdc_dc_mode_valid(struct atmel_hlcdc_dc *dc,
 			      struct drm_display_mode *mode)
Signature · 1 line
2.4.6
Acked-by on v1 1/5
#1 lore raw

Hi Luis,

Quoted 4 lines · On Thu, 17 Sep 2015 16:20:43 +0200 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.

Thanks,

Boris

Quoted 16 lines
---
 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +1 -0
index 8bc62ec..a83c431 100644
@@ -342,6 +342,7 @@ static const struct of_device_id atmel_hlcdc_of_match[] = {
 	},
 	{ /* sentinel */ },
 };
+MODULE_DEVICE_TABLE(of, atmel_hlcdc_of_match);
 
 int atmel_hlcdc_dc_mode_valid(struct atmel_hlcdc_dc *dc,
 			      struct drm_display_mode *mode)
Signature · 7 lines
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel