MLK-16675-3: drm: imx: register mscale DCSS driver with IMX DRM core
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Thu, 19 Oct 2017 09:30:51 +0000 (12:30 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
To be used, the iMX8M DCSS driver has to be "registered" with the IMX
DRM core.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/imx-drm-core.c

index 1387f50..7d91dce 100644 (file)
@@ -29,6 +29,7 @@
 #include <drm/drm_of.h>
 #include <video/imx-ipu-v3.h>
 #include <video/imx-lcdif.h>
+#include <video/imx-dcss.h>
 
 #include "imx-drm.h"
 #include "ipuv3-plane.h"
@@ -130,6 +131,10 @@ static int compare_of(struct device *dev, void *data)
                        legacyfb_depth = 32;
 #endif
 
+               return pdata->of_node == np;
+       }  else if (strcmp(dev->driver->name, "imx-dcss-crtc") == 0) {
+               struct dcss_client_platformdata *pdata = dev->platform_data;
+
                return pdata->of_node == np;
        }