|
@@ -240,7 +240,6 @@ static const struct file_operations clk_dump_fops = {
|
|
.release = single_release,
|
|
.release = single_release,
|
|
};
|
|
};
|
|
|
|
|
|
-/* caller must hold prepare_lock */
|
|
|
|
static int clk_debug_create_one(struct clk *clk, struct dentry *pdentry)
|
|
static int clk_debug_create_one(struct clk *clk, struct dentry *pdentry)
|
|
{
|
|
{
|
|
struct dentry *d;
|
|
struct dentry *d;
|
|
@@ -1944,7 +1943,6 @@ int __clk_init(struct device *dev, struct clk *clk)
|
|
else
|
|
else
|
|
clk->rate = 0;
|
|
clk->rate = 0;
|
|
|
|
|
|
- clk_debug_register(clk);
|
|
|
|
/*
|
|
/*
|
|
* walk the list of orphan clocks and reparent any that are children of
|
|
* walk the list of orphan clocks and reparent any that are children of
|
|
* this clock
|
|
* this clock
|
|
@@ -1979,6 +1977,9 @@ int __clk_init(struct device *dev, struct clk *clk)
|
|
out:
|
|
out:
|
|
clk_prepare_unlock();
|
|
clk_prepare_unlock();
|
|
|
|
|
|
|
|
+ if (!ret)
|
|
|
|
+ clk_debug_register(clk);
|
|
|
|
+
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|