|
@@ -482,11 +482,8 @@ static int clk_debugfs_register_one(struct clk *c)
|
|
int err;
|
|
int err;
|
|
struct dentry *d;
|
|
struct dentry *d;
|
|
struct clk *pa = c->parent;
|
|
struct clk *pa = c->parent;
|
|
- char s[255];
|
|
|
|
- char *p = s;
|
|
|
|
|
|
|
|
- p += sprintf(p, "%s", c->name);
|
|
|
|
- d = debugfs_create_dir(s, pa ? pa->dent : clk_debugfs_root);
|
|
|
|
|
|
+ d = debugfs_create_dir(c->name, pa ? pa->dent : clk_debugfs_root);
|
|
if (!d)
|
|
if (!d)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
c->dent = d;
|
|
c->dent = d;
|
|
@@ -509,7 +506,6 @@ static int clk_debugfs_register_one(struct clk *c)
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
err_out:
|
|
err_out:
|
|
- d = c->dent;
|
|
|
|
debugfs_remove_recursive(c->dent);
|
|
debugfs_remove_recursive(c->dent);
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|