Skip to contentSkip to conversation

drm/panel: samsung-s6d7aa0: Add MODULE_DEVICE_TABLE

PATCH Applied Nikita Travkin 3 participants 4 messages Aug 2, 2023

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

PATCH 1/1 drm/panel: samsung-s6d7aa0: Add MODULE_DEVICE_TABLE

The driver can be built as a module, however the lack of the MODULE_DEVICE_TABLE macro prevents it from being automatically probed from the DT in such case.

Add the missed macro to make sure the module can load automatically.

Fixes 6810bb390282 ("drm/panel: Add Samsung S6D7AA0 panel controller driver")
---
 drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c +1 -0
index 0583360b1280..ea5a85779382 100644
@@ -567,6 +567,7 @@ static const struct of_device_id s6d7aa0_of_match[] = {
 	},
 	{ /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, s6d7aa0_of_match);
 
 static struct mipi_dsi_driver s6d7aa0_driver = {
 	.probe = s6d7aa0_probe,

---
base-commit: 626c67169f9972fffcdf3bc3864de421f162ebf5
change-id: 20230802-gt5-panel-dtable-d9d6ca407f26

Best regards,

Signature · 1 line
Nikita Travkin <[email protected]>
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 29 lines · Nikita Travkin

The driver can be built as a module, however the lack of the MODULE_DEVICE_TABLE macro prevents it from being automatically probed from the DT in such case.

Add the missed macro to make sure the module can load automatically.

Fixes 6810bb390282 ("drm/panel: Add Samsung S6D7AA0 panel controller driver")
---
  drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c +1 -1
index 0583360b1280..ea5a85779382 100644
@@ -567,6 +567,7 @@ static const struct of_device_id s6d7aa0_of_match[] = {
  	},
  	{ /* sentinel */ }
  };
+MODULE_DEVICE_TABLE(of, s6d7aa0_of_match);
 
  static struct mipi_dsi_driver s6d7aa0_driver = {
  	.probe = s6d7aa0_probe,
 
---

base-commit: 626c67169f9972fffcdf3bc3864de421f162ebf5
change-id: 20230802-gt5-panel-dtable-d9d6ca407f26

Quoted 1 line

Best regards,

maintainer Acked-by on v1 1/1
#2 lore raw
In reply to Nikita Travkin
Quoted 11 lines · Nikita Travkin

The driver can be built as a module, however the lack of the MODULE_DEVICE_TABLE macro prevents it from being automatically probed from the DT in such case.

Add the missed macro to make sure the module can load automatically.

Fixes 6810bb390282 ("drm/panel: Add Samsung S6D7AA0 panel controller driver")
---
  drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c | 1 +
  1 file changed, 1 insertion(+)

Best regards
Artur

maintainer Applied
#3 lore raw
In reply to Nikita Travkin

Hi,

Quoted 8 lines · Nikita Travkin

The driver can be built as a module, however the lack of the MODULE_DEVICE_TABLE macro prevents it from being automatically probed from the DT in such case.

Add the missed macro to make sure the module can load automatically.

[...]

Thanks, Applied to https://anongit.freedesktop.org/git/drm/drm-misc.git (drm-misc-fixes)

[1/1] drm/panel: samsung-s6d7aa0: Add MODULE_DEVICE_TABLE

      https://cgit.freedesktop.org/drm/drm-misc/commit/?id=c71b7aa8619a0c9700132d0733e33999fb614339
Signature · 1 line
Neil