From: Krzysztof Kozlowski Date: Sun, 12 Jan 2025 13:46:33 +0000 (+0100) Subject: fbdev: omapfb: Use of_property_present() to test existence of DT property X-Git-Tag: v6.14-rc1~109^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=65ea3b4d383649cc6682abc9fdc60eb9b3b34a34;p=thirdparty%2Flinux.git fbdev: omapfb: Use of_property_present() to test existence of DT property of_property_read_bool() should be used only on boolean properties. Cc: Rob Herring Signed-off-by: Krzysztof Kozlowski Signed-off-by: Helge Deller --- diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dispc.c b/drivers/video/fbdev/omap2/omapfb/dss/dispc.c index c3329c8b4c169..7010544e02e15 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/dispc.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/dispc.c @@ -3933,7 +3933,7 @@ static int dispc_bind(struct device *dev, struct device *master, void *data) return -ENODEV; } - if (np && of_property_read_bool(np, "syscon-pol")) { + if (np && of_property_present(np, "syscon-pol")) { dispc.syscon_pol = syscon_regmap_lookup_by_phandle(np, "syscon-pol"); if (IS_ERR(dispc.syscon_pol)) { dev_err(&pdev->dev, "failed to get syscon-pol regmap\n");