]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: keystone: sci-clk: cut down the clock name length
authorTero Kristo <t-kristo@ti.com>
Tue, 28 May 2019 13:10:20 +0000 (16:10 +0300)
committerTero Kristo <t-kristo@ti.com>
Fri, 7 Jun 2019 09:11:41 +0000 (12:11 +0300)
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: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tero Kristo <t-kristo@ti.com>
drivers/clk/keystone/sci-clk.c

index 4cb70bed89a9f1fc23841d46f70bc1da0616a395..e737f245e25eec304aa551c5549c326fc710c0b1 100644 (file)
@@ -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) {