diff options
author | Colin Cross <ccross@android.com> | 2010-09-08 23:01:04 -0400 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-02-21 02:36:50 -0500 |
commit | bd41ef55e88ae03381569e51ad6ff3bab35e7b0e (patch) | |
tree | cb046b69249bdbcd69aa6dcebc71ac6db32f54f0 /arch/arm/mach-tegra/clock.c | |
parent | 14133add42928d6759f35f5d94938adf2cda2bb6 (diff) |
ARM: tegra: clock: Drop debugging
Drop the unnecessary pr_debug calls to avoid having to maintain them.
Acked-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r-- | arch/arm/mach-tegra/clock.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index 77948e0f4909..f55bb83fb2d3 100644 --- a/arch/arm/mach-tegra/clock.c +++ b/arch/arm/mach-tegra/clock.c | |||
@@ -138,7 +138,6 @@ static void clk_recalculate_rate(struct clk *c) | |||
138 | 138 | ||
139 | int clk_reparent(struct clk *c, struct clk *parent) | 139 | int clk_reparent(struct clk *c, struct clk *parent) |
140 | { | 140 | { |
141 | pr_debug("%s: %s\n", __func__, c->name); | ||
142 | c->parent = parent; | 141 | c->parent = parent; |
143 | list_del(&c->sibling); | 142 | list_del(&c->sibling); |
144 | list_add_tail(&c->sibling, &parent->children); | 143 | list_add_tail(&c->sibling, &parent->children); |
@@ -148,9 +147,8 @@ int clk_reparent(struct clk *c, struct clk *parent) | |||
148 | static void propagate_rate(struct clk *c) | 147 | static void propagate_rate(struct clk *c) |
149 | { | 148 | { |
150 | struct clk *clkp; | 149 | struct clk *clkp; |
151 | pr_debug("%s: %s\n", __func__, c->name); | 150 | |
152 | list_for_each_entry(clkp, &c->children, sibling) { | 151 | list_for_each_entry(clkp, &c->children, sibling) { |
153 | pr_debug(" %s\n", clkp->name); | ||
154 | clk_recalculate_rate(clkp); | 152 | clk_recalculate_rate(clkp); |
155 | propagate_rate(clkp); | 153 | propagate_rate(clkp); |
156 | } | 154 | } |
@@ -160,8 +158,6 @@ void clk_init(struct clk *c) | |||
160 | { | 158 | { |
161 | unsigned long flags; | 159 | unsigned long flags; |
162 | 160 | ||
163 | pr_debug("%s: %s\n", __func__, c->name); | ||
164 | |||
165 | spin_lock_irqsave(&clock_lock, flags); | 161 | spin_lock_irqsave(&clock_lock, flags); |
166 | 162 | ||
167 | INIT_LIST_HEAD(&c->children); | 163 | INIT_LIST_HEAD(&c->children); |
@@ -183,7 +179,7 @@ void clk_init(struct clk *c) | |||
183 | int clk_enable_locked(struct clk *c) | 179 | int clk_enable_locked(struct clk *c) |
184 | { | 180 | { |
185 | int ret; | 181 | int ret; |
186 | pr_debug("%s: %s\n", __func__, c->name); | 182 | |
187 | if (c->refcnt == 0) { | 183 | if (c->refcnt == 0) { |
188 | if (c->parent) { | 184 | if (c->parent) { |
189 | ret = clk_enable_locked(c->parent); | 185 | ret = clk_enable_locked(c->parent); |
@@ -247,7 +243,6 @@ EXPORT_SYMBOL(clk_enable); | |||
247 | 243 | ||
248 | void clk_disable_locked(struct clk *c) | 244 | void clk_disable_locked(struct clk *c) |
249 | { | 245 | { |
250 | pr_debug("%s: %s\n", __func__, c->name); | ||
251 | if (c->refcnt == 0) { | 246 | if (c->refcnt == 0) { |
252 | WARN(1, "Attempting to disable clock %s with refcnt 0", c->name); | 247 | WARN(1, "Attempting to disable clock %s with refcnt 0", c->name); |
253 | return; | 248 | return; |
@@ -298,8 +293,6 @@ int clk_set_parent_locked(struct clk *c, struct clk *parent) | |||
298 | { | 293 | { |
299 | int ret; | 294 | int ret; |
300 | 295 | ||
301 | pr_debug("%s: %s\n", __func__, c->name); | ||
302 | |||
303 | if (!c->ops || !c->ops->set_parent) | 296 | if (!c->ops || !c->ops->set_parent) |
304 | return -ENOSYS; | 297 | return -ENOSYS; |
305 | 298 | ||
@@ -359,8 +352,6 @@ int clk_set_rate_cansleep(struct clk *c, unsigned long rate) | |||
359 | int ret = 0; | 352 | int ret = 0; |
360 | unsigned long flags; | 353 | unsigned long flags; |
361 | 354 | ||
362 | pr_debug("%s: %s\n", __func__, c->name); | ||
363 | |||
364 | mutex_lock(&dvfs_lock); | 355 | mutex_lock(&dvfs_lock); |
365 | 356 | ||
366 | if (rate > c->rate) | 357 | if (rate > c->rate) |
@@ -388,8 +379,6 @@ int clk_set_rate(struct clk *c, unsigned long rate) | |||
388 | int ret = 0; | 379 | int ret = 0; |
389 | unsigned long flags; | 380 | unsigned long flags; |
390 | 381 | ||
391 | pr_debug("%s: %s\n", __func__, c->name); | ||
392 | |||
393 | if (clk_is_dvfs(c)) | 382 | if (clk_is_dvfs(c)) |
394 | BUG(); | 383 | BUG(); |
395 | 384 | ||
@@ -408,8 +397,6 @@ unsigned long clk_get_rate(struct clk *c) | |||
408 | 397 | ||
409 | spin_lock_irqsave(&clock_lock, flags); | 398 | spin_lock_irqsave(&clock_lock, flags); |
410 | 399 | ||
411 | pr_debug("%s: %s\n", __func__, c->name); | ||
412 | |||
413 | ret = c->rate; | 400 | ret = c->rate; |
414 | 401 | ||
415 | spin_unlock_irqrestore(&clock_lock, flags); | 402 | spin_unlock_irqrestore(&clock_lock, flags); |
@@ -419,8 +406,6 @@ EXPORT_SYMBOL(clk_get_rate); | |||
419 | 406 | ||
420 | long clk_round_rate(struct clk *c, unsigned long rate) | 407 | long clk_round_rate(struct clk *c, unsigned long rate) |
421 | { | 408 | { |
422 | pr_debug("%s: %s\n", __func__, c->name); | ||
423 | |||
424 | if (!c->ops || !c->ops->round_rate) | 409 | if (!c->ops || !c->ops->round_rate) |
425 | return -ENOSYS; | 410 | return -ENOSYS; |
426 | 411 | ||