plat-rk: clock.c clk_set_parent can use default

This commit is contained in:
chenxing
2012-09-12 20:08:29 +08:00
parent e30de6e008
commit 164ad8d4b6

View File

@@ -424,7 +424,7 @@ int clk_set_parent(struct clk *clk, struct clk *parent)
if (clk == NULL || IS_ERR(clk) || parent == NULL || IS_ERR(parent))
return ret;
if (clk->set_parent==NULL||clk->parents == NULL)
if (clk->parents == NULL)
return ret;
LOCK();
@@ -443,7 +443,7 @@ int clk_set_parent_force(struct clk *clk, struct clk *parent)
if (clk == NULL || IS_ERR(clk) || parent == NULL || IS_ERR(parent))
return ret;
if (clk->set_parent==NULL||clk->parents == NULL)
if (clk->parents == NULL)
return ret;
LOCK();
ret = clk_set_parent_nolock(clk, parent);