mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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 <krzysztof.kozlowski@linaro.org> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250114145840.505459-1-krzysztof.kozlowski@linaro.org
This commit is contained in:
parent
6ce24b3450
commit
2654d47113
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user