mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-16 13:34:30 +00:00
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:
parent
d1368f62a8
commit
db9344804c
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user