phy: qcom-qmp-combo: clean up device-tree parsing
authorJohan Hovold <johan+linaro@kernel.org>
Mon, 14 Nov 2022 11:06:19 +0000 (12:06 +0100)
committerVinod Koul <vkoul@kernel.org>
Thu, 24 Nov 2022 17:16:53 +0000 (22:46 +0530)
commit6c7c449a008b7a279e15254a829d096a7ea72ee3
tree513cc182abfe641945ba6e64013bb01b1c42da18
parentdd1153651b0383ee9597609bc449d1751eefdcae
phy: qcom-qmp-combo: clean up device-tree parsing

Since the QMP driver split there will be precisely two child nodes 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 is no need to check if there are additional child nodes
(the kernel is not a devicetree validator), but let's return an error if
either child node is missing.

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