PCI: qcom: Use devm_clk_bulk_get_all() API
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 17 Apr 2024 07:02:53 +0000 (12:32 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 28 May 2024 14:51:17 +0000 (09:51 -0500)
commit652935ba05860eadaa19ac9efe7aea61fb7a3aef
treeb207e1ef758618f1ef717f7ab4e5a3ce1069ca46
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
PCI: qcom: Use devm_clk_bulk_get_all() API

There is no need for the device drivers to validate the clocks defined in
Devicetree. The validation should be performed by the DT schema and the
drivers should just get all the clocks from DT. Right now the driver
hardcodes the clock info and validates them against DT which is redundant.

So use devm_clk_bulk_get_all() that just gets all the clocks defined in DT
and get rid of all static clocks info from the driver. This simplifies the
driver.

Link: https://lore.kernel.org/linux-pci/20240417-pci-qcom-clk-bulk-v1-1-52ca19b3d6b2@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof WilczyƄski <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/dwc/pcie-qcom.c