]> www.infradead.org Git - users/jedix/linux-maple.git/commit
memory: emif: Use of_property_read_bool()
authorRob Herring (Arm) <robh@kernel.org>
Wed, 31 Jul 2024 19:12:59 +0000 (13:12 -0600)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 2 Aug 2024 07:16:47 +0000 (09:16 +0200)
commit23d22b0fe6a12317e9d17bb17720285ac4ba4d54
tree0ab6339fb05f734bf47c58e8b383bf478bf59f70
parentddb869ea237eb4e1c882c8768675fad53623b062
memory: emif: Use of_property_read_bool()

Use of_property_read_bool() to read boolean properties 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.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240731191312.1710417-21-robh@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/emif.c