@@ -283,7 +283,7 @@ 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),
+ name = kasprintf(GFP_KERNEL, "%pOFn:%d:%d", provider->dev->of_node,
sci_clk->dev_id, sci_clk->clk_id);
init.name = name;
@@ -309,8 +309,8 @@ 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, "%pOFn:%d:%d",
+ provider->dev->of_node,
sci_clk->dev_id,
sci_clk->clk_id + 1 + i);
if (!parent_name) {
Currently the full device name of the clock provider is used as the initial part of the registered clock name. This is pretty long and completely unnecessary info in generic case, so shorten it up. Now, we only contain the short name of the clock provider node (pOFn.) Signed-off-by: Tero Kristo <t-kristo@ti.com> --- drivers/clk/keystone/sci-clk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 1.9.1 -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki