Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191653
b: refs/heads/master
c: d97432f
h: refs/heads/master
i:
  191651: 6ea4178
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed May 11, 2010
1 parent 429cb49 commit 5657588
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd30401b07fdcf21e4be87fd276d1b2c84d712a3
refs/heads/master: d97432f1014c73bbace9eb1e67742c1bcab0c3cd
7 changes: 4 additions & 3 deletions trunk/arch/sh/kernel/cpu/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,15 +415,16 @@ struct clk *clk_get(struct device *dev, const char *id)

mutex_lock(&clock_list_sem);
list_for_each_entry(p, &clock_list, node) {
if (p->id == idno &&
if (p->name && p->id == idno &&
strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
clk = p;
goto found;
}
}

list_for_each_entry(p, &clock_list, node) {
if (strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
if (p->name &&
strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
clk = p;
break;
}
Expand Down Expand Up @@ -594,7 +595,7 @@ static int clk_debugfs_register(struct clk *c)
return err;
}

if (!c->dentry) {
if (!c->dentry && c->name) {
err = clk_debugfs_register_one(c);
if (err)
return err;
Expand Down

0 comments on commit 5657588

Please sign in to comment.