phy: qcom-qmp-usb: clean up device-tree parsing
authorJohan Hovold <johan+linaro@kernel.org>
Fri, 28 Oct 2022 16:04:28 +0000 (18:04 +0200)
committerVinod Koul <vkoul@kernel.org>
Sat, 5 Nov 2022 07:29:42 +0000 (12:59 +0530)
commit8ec02ba8493639c721fc63ed05c06891061ef9b5
tree1e23bab0b961996aadb4a1025d8bedcaabdc5ffb
parent2a55ec4f0a048e0aa12022b52009d8d8667ee3d3
phy: qcom-qmp-usb: 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.

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