Re: [PATCH v2] scsi: ufs: ufshcd-pltfrm: Use of_property_present()

From: Bart Van Assche
Date: Thu Aug 08 2024 - 13:10:11 EST


On 8/8/24 10:06 AM, Rob Herring (Arm) wrote:
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.

Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>