Message ID | 20160512083047.GY3733@lukather (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 05/12, Maxime Ripard wrote: > > diff --git a/drivers/clk/sunxi/clk-sun4i-display.c b/drivers/clk/sunxi/clk-sun4i-display.c > index 70803aa7028c..9780fac6d029 100644 > --- a/drivers/clk/sunxi/clk-sun4i-display.c > +++ b/drivers/clk/sunxi/clk-sun4i-display.c > @@ -128,8 +128,8 @@ static void __init sun4i_a10_display_init(struct device_node *node, > return; > } > > - ret = of_clk_parent_fill(node, parents, ARRAY_SIZE(parents)); > - if (ret != ARRAY_SIZE(parents)) { > + ret = of_clk_parent_fill(node, parents, data->parents); > + if (ret != data->parents) { > pr_err("%s: Could not retrieve the parents\n", clk_name); > goto unmap; > } Ah ok. Thanks for catching that thinko and sending a patch.
diff --git a/drivers/clk/sunxi/clk-sun4i-display.c b/drivers/clk/sunxi/clk-sun4i-display.c index 70803aa7028c..9780fac6d029 100644 --- a/drivers/clk/sunxi/clk-sun4i-display.c +++ b/drivers/clk/sunxi/clk-sun4i-display.c @@ -128,8 +128,8 @@ static void __init sun4i_a10_display_init(struct device_node *node, return; } - ret = of_clk_parent_fill(node, parents, ARRAY_SIZE(parents)); - if (ret != ARRAY_SIZE(parents)) { + ret = of_clk_parent_fill(node, parents, data->parents); + if (ret != data->parents) { pr_err("%s: Could not retrieve the parents\n", clk_name); goto unmap; }