mailbox: mtk-cmdq: Stop requiring name for GCE clock

The Global Command Engine mailbox has only one clock hence
requiring clock-names is useless.

Get the first (and only) clock instead, without name checks.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
This commit is contained in:
AngeloGioacchino Del Regno 2024-06-20 12:07:47 +02:00 committed by Jassi Brar
parent d1368f62a8
commit db9344804c

View File

@ -629,7 +629,7 @@ static int cmdq_probe(struct platform_device *pdev)
}
} else {
cmdq->clocks[alias_id].id = clk_name;
cmdq->clocks[alias_id].clk = devm_clk_get(&pdev->dev, clk_name);
cmdq->clocks[alias_id].clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(cmdq->clocks[alias_id].clk)) {
return dev_err_probe(dev, PTR_ERR(cmdq->clocks[alias_id].clk),
"failed to get gce clk\n");