Commit abf02e13 authored by Konrad Dybcio's avatar Konrad Dybcio Committed by Linus Walleij
Browse files

pinctrl: qcom: lpass-lpi: Make the clocks optional, always



Some platforms provide a single clock source to all LPASS peripherals,
others provide two, and there are probably others that provide it through
magic invisible-to-Linux wires.

Rely on bindings to mandate the adequate number of clocks necessary.

Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230714-topic-lpass_lpi_cleanup-v1-1-dc18b5bd14f7@linaro.org


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent d1cd5b51
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -438,11 +438,7 @@ int lpi_pinctrl_probe(struct platform_device *pdev)
		return dev_err_probe(dev, PTR_ERR(pctrl->slew_base),
				     "Slew resource not provided\n");

	if (of_property_read_bool(dev->of_node, "qcom,adsp-bypass-mode"))
	ret = devm_clk_bulk_get_optional(dev, MAX_LPI_NUM_CLKS, pctrl->clks);
	else
		ret = devm_clk_bulk_get(dev, MAX_LPI_NUM_CLKS, pctrl->clks);

	if (ret)
		return ret;