]> www.infradead.org Git - users/dwmw2/linux.git/commit
of: unittest: Use of_property_present()
authorRob Herring (Arm) <robh@kernel.org>
Wed, 31 Jul 2024 19:12:48 +0000 (13:12 -0600)
committerRob Herring (Arm) <robh@kernel.org>
Tue, 6 Aug 2024 19:22:13 +0000 (13:22 -0600)
commit1c668ea65506e67ce2eae07b69bb09fcdd86e309
tree4b2d81d6fcdcb634c44e7bd388b5122a219da814
parentb31b9fb578783ee569d28325917821e7149e6f9b
of: unittest: Use of_property_present()

Use of_property_present() to test for property presence rather than
of_find_property(). This is part of a larger effort to remove callers
of of_find_property() and similar functions. of_find_property() leaks
the DT struct property and data pointers which is a problem for
dynamically allocated nodes which may be freed.

Link: https://lore.kernel.org/r/20240731191312.1710417-10-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/unittest.c