|
@@ -371,17 +371,12 @@ void __init of_at91sam9x5_clk_slow_setup(struct device_node *np,
|
|
|
const char *parent_names[2];
|
|
|
int num_parents;
|
|
|
const char *name = np->name;
|
|
|
- int i;
|
|
|
|
|
|
num_parents = of_clk_get_parent_count(np);
|
|
|
if (num_parents <= 0 || num_parents > 2)
|
|
|
return;
|
|
|
|
|
|
- for (i = 0; i < num_parents; ++i) {
|
|
|
- parent_names[i] = of_clk_get_parent_name(np, i);
|
|
|
- if (!parent_names[i])
|
|
|
- return;
|
|
|
- }
|
|
|
+ of_clk_parent_fill(np, parent_names, num_parents);
|
|
|
|
|
|
of_property_read_string(np, "clock-output-names", &name);
|
|
|
|
|
@@ -449,17 +444,12 @@ void __init of_at91sam9260_clk_slow_setup(struct device_node *np,
|
|
|
const char *parent_names[2];
|
|
|
int num_parents;
|
|
|
const char *name = np->name;
|
|
|
- int i;
|
|
|
|
|
|
num_parents = of_clk_get_parent_count(np);
|
|
|
if (num_parents != 2)
|
|
|
return;
|
|
|
|
|
|
- for (i = 0; i < num_parents; ++i) {
|
|
|
- parent_names[i] = of_clk_get_parent_name(np, i);
|
|
|
- if (!parent_names[i])
|
|
|
- return;
|
|
|
- }
|
|
|
+ of_clk_parent_fill(np, parent_names, num_parents);
|
|
|
|
|
|
of_property_read_string(np, "clock-output-names", &name);
|
|
|
|