]> 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)
commitfde13568ca89881b617e1256321b1ac27299df14
tree757cf7ccbed9a89c584178f92ec04c0c2bcaae06
parentf01c49320b0403493cfe66441387bbc56fbae873
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