Skip to content

Commit db93448

Browse files
AngeloGioacchino Del RegnoJassi Brar
authored andcommitted
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 <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent d1368f6 commit db93448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mailbox/mtk-cmdq-mailbox.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ static int cmdq_probe(struct platform_device *pdev)
629629
}
630630
} else {
631631
cmdq->clocks[alias_id].id = clk_name;
632-
cmdq->clocks[alias_id].clk = devm_clk_get(&pdev->dev, clk_name);
632+
cmdq->clocks[alias_id].clk = devm_clk_get(&pdev->dev, NULL);
633633
if (IS_ERR(cmdq->clocks[alias_id].clk)) {
634634
return dev_err_probe(dev, PTR_ERR(cmdq->clocks[alias_id].clk),
635635
"failed to get gce clk\n");

0 commit comments

Comments
 (0)