|
@@ -58,7 +58,7 @@ struct clk * clk_get(struct device *dev, const char *id)
|
|
if (p->id == idno &&
|
|
if (p->id == idno &&
|
|
strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
|
|
strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
|
|
clk = p;
|
|
clk = p;
|
|
- break;
|
|
|
|
|
|
+ goto found;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -69,6 +69,7 @@ struct clk * clk_get(struct device *dev, const char *id)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+found:
|
|
mutex_unlock(&clocks_mutex);
|
|
mutex_unlock(&clocks_mutex);
|
|
|
|
|
|
return clk;
|
|
return clk;
|