]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/plat-omap/clock.c
ARM: OMAP: Fix clk_get() when using id and name
[linux-2.6-omap-h63xx.git] / arch / arm / plat-omap / clock.c
index ca16552d2c1643b7164aed4708cfe58e5b6a2be1..3d47bdcfb25ca42f9103602685de8e31c16151a8 100644 (file)
@@ -58,7 +58,7 @@ struct clk * clk_get(struct device *dev, const char *id)
                if (p->id == idno &&
                    strcmp(id, p->name) == 0 && try_module_get(p->owner)) {
                        clk = p;
-                       break;
+                       goto found;
                }
        }
 
@@ -69,6 +69,7 @@ struct clk * clk_get(struct device *dev, const char *id)
                }
        }
 
+found:
        mutex_unlock(&clocks_mutex);
 
        return clk;