|
@@ -1390,7 +1390,7 @@ static struct clk *clk_calc_new_rates(struct clk *clk, unsigned long rate)
|
|
}
|
|
}
|
|
|
|
|
|
/* try finding the new parent index */
|
|
/* try finding the new parent index */
|
|
- if (parent) {
|
|
|
|
|
|
+ if (parent && clk->num_parents > 1) {
|
|
p_index = clk_fetch_parent_index(clk, parent);
|
|
p_index = clk_fetch_parent_index(clk, parent);
|
|
if (p_index < 0) {
|
|
if (p_index < 0) {
|
|
pr_debug("%s: clk %s can not be parent of clk %s\n",
|
|
pr_debug("%s: clk %s can not be parent of clk %s\n",
|