Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 96488c09 authored by Tero Kristo's avatar Tero Kristo
Browse files

clk: keystone: sci-clk: cut down the clock name length



There is no need to store the full node name to the individual clocks,
as this will just consome memory and make the clock debug entries
unnecessary long. Just shorten this to "clk" for now.

Acked-by: default avatarSantosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: default avatarTero Kristo <t-kristo@ti.com>
parent a188339c
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -280,8 +280,8 @@ static int _sci_clk_build(struct sci_clk_provider *provider,
	int i;
	int ret = 0;

	name = kasprintf(GFP_KERNEL, "%s:%d:%d", dev_name(provider->dev),
			 sci_clk->dev_id, sci_clk->clk_id);
	name = kasprintf(GFP_KERNEL, "clk:%d:%d", sci_clk->dev_id,
			 sci_clk->clk_id);

	init.name = name;

@@ -306,8 +306,7 @@ static int _sci_clk_build(struct sci_clk_provider *provider,
		for (i = 0; i < sci_clk->num_parents; i++) {
			char *parent_name;

			parent_name = kasprintf(GFP_KERNEL, "%s:%d:%d",
						dev_name(provider->dev),
			parent_name = kasprintf(GFP_KERNEL, "clk:%d:%d",
						sci_clk->dev_id,
						sci_clk->clk_id + 1 + i);
			if (!parent_name) {