PCI: qcom-ep: Rely on the clocks supplied by devicetree
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 14 Sep 2022 07:53:40 +0000 (13:23 +0530)
committerLorenzo Pieralisi <lpieralisi@kernel.org>
Mon, 3 Oct 2022 08:38:16 +0000 (10:38 +0200)
commite2efd31465b1d97a0bca6f93cb75ccdc8001c8d3
tree2e14f400bb6fba5394082d947e2929ece6fd10f5
parentf1bfbd000f3bc42a34aec9208c6aaa9076682601
PCI: qcom-ep: Rely on the clocks supplied by devicetree

Generally, device drivers should just rely on the platform data like
devicetree to supply the clocks required for the functioning of the
peripheral. There is no need to hardcode the clk info in the driver.
So get rid of the static clk info and obtain the platform supplied
clks.

The total number of clocks supplied is obtained using the
devm_clk_bulk_get_all() API and used for the rest of the clk_bulk_ APIs.

Link: https://lore.kernel.org/r/20220914075350.7992-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
drivers/pci/controller/dwc/pcie-qcom-ep.c