]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf: arm_pmu: Use of_property_present()
authorRob Herring (Arm) <robh@kernel.org>
Wed, 31 Jul 2024 19:12:53 +0000 (13:12 -0600)
committerWill Deacon <will@kernel.org>
Fri, 16 Aug 2024 12:08:21 +0000 (13:08 +0100)
commit48b035121a564f2695462fbab0d2af51cb4f4b7a
treee99a838caf63d8eec1ed55ca062239975ea2436e
parent7c626ce4bae1ac14f60076d00eafe71af30450ba
perf: arm_pmu: 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.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20240731191312.1710417-15-robh@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_pmu_platform.c