phy: qcom-qmp-ufs: Switch to devm_clk_bulk_get_all() API
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 31 Jan 2024 07:07:25 +0000 (12:37 +0530)
committerVinod Koul <vkoul@kernel.org>
Wed, 7 Feb 2024 09:01:53 +0000 (10:01 +0100)
commit2668cae8b64bf25c4c7a39eb2cb0012c92153c11
tree6b271bec846c777a5951b95b29f5043b1e314057
parentb0bcec86f47b44c98a23c31d54dd3963e27761a2
phy: qcom-qmp-ufs: Switch to devm_clk_bulk_get_all() API

Device drivers should just rely on the clocks provided by the devicetree
and enable/disable them based on the requirement. There is no need to
validate the clocks provided by devicetree in the driver. That's the job
of DT schema.

So let's switch to devm_clk_bulk_get_all() API that just gets the clocks
provided by devicetree and remove hardcoded clocks info.

Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20240131-ufs-phy-clock-v3-2-58a49d2f4605@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-qmp-ufs.c