summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/omap2
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-03-10 08:47:29 -0600
committerHelge Deller <deller@gmx.de>2023-03-16 16:18:17 +0100
commit29413f05fe34e8824551b91f660fde781249417d (patch)
treed962adccfeb56bb95db48231d559fbb3f83ddf21 /drivers/video/fbdev/omap2
parent44a3b36b42acfc433aaaf526191dd12fbb919fdb (diff)
downloadlinux-stable-29413f05fe34e8824551b91f660fde781249417d.tar.gz
linux-stable-29413f05fe34e8824551b91f660fde781249417d.tar.bz2
linux-stable-29413f05fe34e8824551b91f660fde781249417d.zip
fbdev: Use of_property_present() for testing DT property presence
It is preferred to use typed property access functions (i.e. of_property_read_<type> functions) rather than low-level of_get_property/of_find_property functions for reading properties. As part of this, convert of_get_property/of_find_property calls to the recently added of_property_present() helper when we just want to test for presence of a property and nothing more. Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/omap2')
-rw-r--r--drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c
index 0ae0cab252d3..09f719af0d0c 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c
@@ -192,7 +192,7 @@ static int __init omapdss_boot_init(void)
omapdss_walk_device(dss, true);
for_each_available_child_of_node(dss, child) {
- if (!of_find_property(child, "compatible", NULL))
+ if (!of_property_present(child, "compatible"))
continue;
omapdss_walk_device(child, true);