]> www.infradead.org Git - users/willy/xarray.git/commit
scsi: ufs: ufshcd-pltfrm: Use of_property_present()
authorRob Herring (Arm) <robh@kernel.org>
Thu, 8 Aug 2024 17:06:44 +0000 (11:06 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 12 Aug 2024 22:16:40 +0000 (18:16 -0400)
commitfd9cb9615fca4fa322a43eeecbd71d4de1ba146a
tree14a74ba729e4d83241f9c6e59db5435673cfc129
parentea6787c695ab7595d851c3506f67c157f3b593c0
scsi: ufs: ufshcd-pltfrm: 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>
Link: https://lore.kernel.org/r/20240808170644.1436991-1-robh@kernel.org
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufshcd-pltfrm.c