sparc: Use of_property_present() for testing DT property presence
authorRob Herring <robh@kernel.org>
Fri, 10 Mar 2023 14:46:59 +0000 (08:46 -0600)
committerRob Herring <robh@kernel.org>
Tue, 18 Apr 2023 16:23:21 +0000 (11:23 -0500)
commit6a71ca744bb52d222f821c6239aa44ffa16e5937
tree28e4c5ab1d3067f7416b69b9ffbf869287765b33
parent6bb1504d5fe10e4ccf0b5318525948c86d5aa915
sparc: 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.

Link: https://lore.kernel.org/r/20230310144659.1541247-1-robh@kernel.org
Signed-off-by: Rob Herring <robh@kernel.org>
arch/sparc/kernel/of_device_32.c
arch/sparc/kernel/of_device_64.c
arch/sparc/kernel/of_device_common.c
arch/sparc/kernel/prom_64.c
arch/sparc/kernel/time_32.c