drm/panel: samsung-s6d7aa0: Add MODULE_DEVICE_TABLE
authorNikita Travkin <nikita@trvn.ru>
Wed, 2 Aug 2023 06:41:22 +0000 (11:41 +0500)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 2 Aug 2023 08:56:50 +0000 (10:56 +0200)
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")
Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Acked-by: Artur Weber <aweber.kernel@gmail.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230802-gt5-panel-dtable-v1-1-c0a765c175e2@trvn.ru
drivers/gpu/drm/panel/panel-samsung-s6d7aa0.c

index 102e1fc7ee383a4ae97cd121e61525ef95ba458d..be4ec5bb5223b855255904b19c1cb898426bbd53 100644 (file)
@@ -569,6 +569,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,