OSDN Git Service

drm/bridge: cdns-dsi: Make sure to to create proper aliases for dt
authorNishanth Menon <nm@ti.com>
Tue, 21 Sep 2021 17:40:59 +0000 (12:40 -0500)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 28 Feb 2022 09:43:27 +0000 (11:43 +0200)
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")
Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210921174059.17946-1-nm@ti.com
drivers/gpu/drm/bridge/cdns-dsi.c

index d8a15c4..829e1a1 100644 (file)
@@ -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,