]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/msm: Fix convert to drm_of_get_data_lanes_count
authorMarek Vasut <marex@denx.de>
Sun, 12 Jun 2022 14:33:49 +0000 (16:33 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 13 Jun 2022 15:02:32 +0000 (17:02 +0200)
Add missing header file into dsi_host.c and encode data-lanes string
directly into the warning message in the driver to avoid build issues
detected by lkp.

Fixes: 800d077cabce ("drm/msm: Convert to drm_of_get_data_lanes_count")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Abhinav Kumar <quic_abhinavk@quicinc.com>
Cc: Andrzej Hajda <andrzej.hajda@intel.com>
Cc: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Maxime Ripard <maxime@cerno.tech>
Cc: Rob Clark <robdclark@gmail.com>
Cc: Robert Foss <robert.foss@linaro.org>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Sean Paul <sean@poorly.run>
To: dri-devel@lists.freedesktop.org
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220612143349.105766-1-marex@denx.de
drivers/gpu/drm/msm/dp/dp_parser.c
drivers/gpu/drm/msm/dsi/dsi_host.c

index fabd18e7dc0d8b4243e77334f25cbdcde59dc4b0..6088d70f22e52cc89f2468d73b098a114ffb5c22 100644 (file)
@@ -106,8 +106,8 @@ static int dp_parser_misc(struct dp_parser *parser)
 
        len = drm_of_get_data_lanes_count(of_node, 1, DP_MAX_NUM_DP_LANES);
        if (len < 0) {
-               DRM_WARN("Invalid property %s, default max DP lanes = %d\n",
-                               data_lane_property, DP_MAX_NUM_DP_LANES);
+               DRM_WARN("Invalid property \"data-lanes\", default max DP lanes = %d\n",
+                        DP_MAX_NUM_DP_LANES);
                len = DP_MAX_NUM_DP_LANES;
        }
 
index 63969e464dbeaf9ffe934e53b175f65290592cd4..c4a24ae00d946e468e0b5493b48210527241a055 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <video/mipi_display.h>
 
+#include <drm/drm_of.h>
+
 #include "dsi.h"
 #include "dsi.xml.h"
 #include "sfpb.xml.h"