Skip to content

Commit 65ea3b4

Browse files
krzkhdeller
authored andcommitted
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 <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent ed3f274 commit 65ea3b4

File tree

1 file changed

+1
-1
lines changed
  • drivers/video/fbdev/omap2/omapfb/dss

1 file changed

+1
-1
lines changed

drivers/video/fbdev/omap2/omapfb/dss/dispc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3933,7 +3933,7 @@ static int dispc_bind(struct device *dev, struct device *master, void *data)
39333933
return -ENODEV;
39343934
}
39353935

3936-
if (np && of_property_read_bool(np, "syscon-pol")) {
3936+
if (np && of_property_present(np, "syscon-pol")) {
39373937
dispc.syscon_pol = syscon_regmap_lookup_by_phandle(np, "syscon-pol");
39383938
if (IS_ERR(dispc.syscon_pol)) {
39393939
dev_err(&pdev->dev, "failed to get syscon-pol regmap\n");

0 commit comments

Comments
 (0)