Skip to contentSkip to conversation

drm/bridge: cdns-dsi: Make sure to to create proper aliases for dt

PATCH In review Nishanth Menon 3 participants 5 messages Sep 21, 2021 – Feb 28, 2022

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

PATCH 1/1 drm/bridge: cdns-dsi: Make sure to to create proper aliases for dt

Add MODULE_DEVICE_TABLE to the device tree table to create required aliases needed for module to be loaded with device tree based platform.

Fixes e19233955d9e ("drm/bridge: Add Cadence DSI driver")
---
 drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/cdns-dsi.c +1 -0
index d8a15c459b42..829e1a144656 100644
@@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
 	{ .compatible = "cdns,dsi" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
 
 static struct platform_driver cdns_dsi_platform_driver = {
 	.probe  = cdns_dsi_drm_probe,
Signature · 1 line
2.32.0
#1 lore raw
Quoted 25 lines · Nishanth Menon

Add MODULE_DEVICE_TABLE to the device tree table to create required aliases needed for module to be loaded with device tree based platform.

Fixes e19233955d9e ("drm/bridge: Add Cadence DSI driver")
---
 drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/cdns-dsi.c +1 -0
index d8a15c459b42..829e1a144656 100644
@@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
 	{ .compatible = "cdns,dsi" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
 
 static struct platform_driver cdns_dsi_platform_driver = {
 	.probe  = cdns_dsi_drm_probe,
Signature · 1 line
2.32.0

Hi, Ping?

Signature · 3 lines
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3  1A34 DDB5 849D 1736 249D
Reviewed-by
#2 lore raw
Quoted 20 lines · Nishanth Menon
Quoted 19 lines · Nishanth Menon

Add MODULE_DEVICE_TABLE to the device tree table to create required aliases needed for module to be loaded with device tree based platform.

Fixes e19233955d9e ("drm/bridge: Add Cadence DSI driver")
---
  drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/cdns-dsi.c +1 -0
index d8a15c459b42..829e1a144656 100644
@@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
  	{ .compatible = "cdns,dsi" },
  	{ },
  };
+MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
 
Quoted 9 lines
Quoted 6 lines
drivers/gpu/drm/bridge/cdns-dsi.c +0 -0
  static struct platform_driver cdns_dsi_platform_driver = {
  	.probe  = cdns_dsi_drm_probe,
Signature · 1 line
2.32.0

Hi, Ping?

Tomi

reviewer Reviewed-by
#3 lore raw
In reply to Nishanth Menon

Hi Nishanth,

Thank you for the patch, and sorry for the late reply.

Quoted 6 lines · Nishanth Menon
Quoted 5 lines · Nishanth Menon

Add MODULE_DEVICE_TABLE to the device tree table to create required aliases needed for module to be loaded with device tree based platform.

Fixes e19233955d9e ("drm/bridge: Add Cadence DSI driver")
Quoted 16 lines
Quoted 16 lines
---
 drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/cdns-dsi.c +1 -0
index d8a15c459b42..829e1a144656 100644
@@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
 	{ .compatible = "cdns,dsi" },
 	{ },
 };
+MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
 
 static struct platform_driver cdns_dsi_platform_driver = {
 	.probe  = cdns_dsi_drm_probe,
Signature · 3 lines
Regards,

Laurent Pinchart
#4 lore raw
In reply to Nishanth Menon
Quoted 20 lines · Nishanth Menon
Quoted 19 lines · Nishanth Menon

Add MODULE_DEVICE_TABLE to the device tree table to create required aliases needed for module to be loaded with device tree based platform.

Fixes e19233955d9e ("drm/bridge: Add Cadence DSI driver")
---
  drivers/gpu/drm/bridge/cdns-dsi.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/bridge/cdns-dsi.c +1 -0
index d8a15c459b42..829e1a144656 100644
@@ -1284,6 +1284,7 @@ static const struct of_device_id cdns_dsi_of_match[] = {
  	{ .compatible = "cdns,dsi" },
  	{ },
  };
+MODULE_DEVICE_TABLE(of, cdns_dsi_of_match);
 
Quoted 8 lines
Quoted 6 lines
drivers/gpu/drm/bridge/cdns-dsi.c +0 -0
  static struct platform_driver cdns_dsi_platform_driver = {
  	.probe  = cdns_dsi_drm_probe,
Signature · 1 line
2.32.0

Hi, Ping?

Thanks, I'll apply to drm-misc-next.

Tomi