diff options
-rw-r--r-- | drivers/sh/clk-cpg.c | 2 | ||||
-rw-r--r-- | drivers/sh/clk.c | 14 | ||||
-rw-r--r-- | include/linux/sh_clk.h | 3 |
3 files changed, 6 insertions, 13 deletions
diff --git a/drivers/sh/clk-cpg.c b/drivers/sh/clk-cpg.c index 8c024b984ed8..392627be4544 100644 --- a/drivers/sh/clk-cpg.c +++ b/drivers/sh/clk-cpg.c | |||
@@ -180,7 +180,6 @@ static int __init sh_clk_div6_register_ops(struct clk *clks, int nr, | |||
180 | clkp = clks + k; | 180 | clkp = clks + k; |
181 | 181 | ||
182 | clkp->ops = ops; | 182 | clkp->ops = ops; |
183 | clkp->id = -1; | ||
184 | clkp->freq_table = freq_table + (k * freq_table_size); | 183 | clkp->freq_table = freq_table + (k * freq_table_size); |
185 | clkp->freq_table[nr_divs].frequency = CPUFREQ_TABLE_END; | 184 | clkp->freq_table[nr_divs].frequency = CPUFREQ_TABLE_END; |
186 | 185 | ||
@@ -319,7 +318,6 @@ static int __init sh_clk_div4_register_ops(struct clk *clks, int nr, | |||
319 | clkp = clks + k; | 318 | clkp = clks + k; |
320 | 319 | ||
321 | clkp->ops = ops; | 320 | clkp->ops = ops; |
322 | clkp->id = -1; | ||
323 | clkp->priv = table; | 321 | clkp->priv = table; |
324 | 322 | ||
325 | clkp->freq_table = freq_table + (k * freq_table_size); | 323 | clkp->freq_table = freq_table + (k * freq_table_size); |
diff --git a/drivers/sh/clk.c b/drivers/sh/clk.c index b9c57a640c24..30ad6f04afb0 100644 --- a/drivers/sh/clk.c +++ b/drivers/sh/clk.c | |||
@@ -161,8 +161,8 @@ void propagate_rate(struct clk *tclk) | |||
161 | 161 | ||
162 | static void __clk_disable(struct clk *clk) | 162 | static void __clk_disable(struct clk *clk) |
163 | { | 163 | { |
164 | if (WARN(!clk->usecount, "Trying to disable clock %s with 0 usecount\n", | 164 | if (WARN(!clk->usecount, "Trying to disable clock %p with 0 usecount\n", |
165 | clk->name)) | 165 | clk)) |
166 | return; | 166 | return; |
167 | 167 | ||
168 | if (!(--clk->usecount)) { | 168 | if (!(--clk->usecount)) { |
@@ -357,8 +357,8 @@ int clk_set_parent(struct clk *clk, struct clk *parent) | |||
357 | if (ret == 0) { | 357 | if (ret == 0) { |
358 | if (clk->ops->recalc) | 358 | if (clk->ops->recalc) |
359 | clk->rate = clk->ops->recalc(clk); | 359 | clk->rate = clk->ops->recalc(clk); |
360 | pr_debug("clock: set parent of %s to %s (new rate %ld)\n", | 360 | pr_debug("clock: set parent of %p to %p (new rate %ld)\n", |
361 | clk->name, clk->parent->name, clk->rate); | 361 | clk, clk->parent, clk->rate); |
362 | propagate_rate(clk); | 362 | propagate_rate(clk); |
363 | } | 363 | } |
364 | } else | 364 | } else |
@@ -470,9 +470,7 @@ static int clk_debugfs_register_one(struct clk *c) | |||
470 | char s[255]; | 470 | char s[255]; |
471 | char *p = s; | 471 | char *p = s; |
472 | 472 | ||
473 | p += sprintf(p, "%s", c->name); | 473 | p += sprintf(p, "%p", c); |
474 | if (c->id >= 0) | ||
475 | sprintf(p, ":%d", c->id); | ||
476 | d = debugfs_create_dir(s, pa ? pa->dentry : clk_debugfs_root); | 474 | d = debugfs_create_dir(s, pa ? pa->dentry : clk_debugfs_root); |
477 | if (!d) | 475 | if (!d) |
478 | return -ENOMEM; | 476 | return -ENOMEM; |
@@ -514,7 +512,7 @@ static int clk_debugfs_register(struct clk *c) | |||
514 | return err; | 512 | return err; |
515 | } | 513 | } |
516 | 514 | ||
517 | if (!c->dentry && c->name) { | 515 | if (!c->dentry) { |
518 | err = clk_debugfs_register_one(c); | 516 | err = clk_debugfs_register_one(c); |
519 | if (err) | 517 | if (err) |
520 | return err; | 518 | return err; |
diff --git a/include/linux/sh_clk.h b/include/linux/sh_clk.h index 875ce50719a9..ecdfea54a49e 100644 --- a/include/linux/sh_clk.h +++ b/include/linux/sh_clk.h | |||
@@ -21,9 +21,6 @@ struct clk_ops { | |||
21 | 21 | ||
22 | struct clk { | 22 | struct clk { |
23 | struct list_head node; | 23 | struct list_head node; |
24 | const char *name; | ||
25 | int id; | ||
26 | |||
27 | struct clk *parent; | 24 | struct clk *parent; |
28 | struct clk **parent_table; /* list of parents to */ | 25 | struct clk **parent_table; /* list of parents to */ |
29 | unsigned short parent_num; /* choose between */ | 26 | unsigned short parent_num; /* choose between */ |