]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: qcom: Simplify handling of devm_phy_get()
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 4 May 2022 08:42:09 +0000 (14:12 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 May 2022 01:52:53 +0000 (21:52 -0400)
commitf804d8b3fe4926258bca55852530ef847bca8790
tree757cf7ccbed9a89c584178f92ec04c0c2bcaae06
parent5f51363e4ee4db43f1243658d6552abf96e4e9e4
scsi: ufs: qcom: Simplify handling of devm_phy_get()

There is no need to call devm_phy_get() if ACPI is used, so skip it.  The
host->generic_phy pointer should already be NULL due to the kzalloc(), so
no need to set it NULL again.

While at it, also remove the comment that has no relationship with
devm_phy_get().

Link: https://lore.kernel.org/r/20220504084212.11605-3-manivannan.sadhasivam@linaro.org
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-qcom.c