OSDN Git Service

phy: qcom-qmp-ufs: clean up device-tree parsing
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 24 Oct 2022 09:00:34 +0000 (11:00 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 28 Oct 2022 13:00:30 +0000 (18:30 +0530)
commitcb2c3d2ee46fe56144b74a22504e023aa59835aa
tree155fc49b9407a859f5a3fdf1f8da9bdc898625b0
parenta36032db30deb2235bc18a8f1088c9a801bf66b0
phy: qcom-qmp-ufs: clean up device-tree parsing

Since the QMP driver split there will be at most a single child node so
drop the obsolete iteration construct.

While at it, drop the verbose error logging that would have been
printed also on probe deferrals.

Note that there's no need to check if there are additional child nodes
(the kernel is not a devicetree validator), but let's return an error if
there are no child nodes at all for now.

Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20221024090041.19574-4-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c