aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/sh
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-10-13 03:44:36 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-10-13 06:23:05 -0400
commit69395396a0a8866f30d59c66b7be1912ccb5d160 (patch)
tree7301583a4abbf99bae5c678af87c01a312d1c8f1 /drivers/sh
parent1ffbb037d8e81ba4f09901451b39c8f178b05559 (diff)
sh: remove name and id from struct clk
Remove "name" and "id" from drivers/sh/ struct clk. The struct clk members "name" and "id" are not used now when matching is done through clkdev. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'drivers/sh')
-rw-r--r--drivers/sh/clk-cpg.c2
-rw-r--r--drivers/sh/clk.c14
2 files changed, 6 insertions, 10 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
162static void __clk_disable(struct clk *clk) 162static 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;