From: Krzysztof Kozlowski Date: Tue, 14 Jan 2025 14:58:39 +0000 (+0100) Subject: drm/omap/dss: Use of_property_present() to test existence of DT property X-Git-Tag: v6.15-rc1~120^2~20^2~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2654d4711375ec32ffb8c83644e3af716d009b63;p=thirdparty%2Fkernel%2Fstable.git drm/omap/dss: Use of_property_present() to test existence of DT property of_property_read_bool() should be used only on boolean properties. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Tomi Valkeinen Link: https://patchwork.freedesktop.org/patch/msgid/20250114145840.505459-1-krzysztof.kozlowski@linaro.org --- diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c index 7b2df3185de45..319f0a1d23a73 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss.c +++ b/drivers/gpu/drm/omapdrm/dss/dss.c @@ -1236,7 +1236,7 @@ static int dss_video_pll_probe(struct dss_device *dss) if (!np) return 0; - if (of_property_read_bool(np, "syscon-pll-ctrl")) { + if (of_property_present(np, "syscon-pll-ctrl")) { dss->syscon_pll_ctrl = syscon_regmap_lookup_by_phandle(np, "syscon-pll-ctrl"); if (IS_ERR(dss->syscon_pll_ctrl)) {