@@ -277,7 +277,7 @@ static __init struct clk *hb_clk_init(struct device_node *node, const struct clk
struct hb_clk *hb_clk;
const char *clk_name = node->name;
const char *parent_name;
- struct clk_init_data init_data;
+ struct clk_init_data init;
int rc;
rc = of_property_read_u32(node, "reg", ®);
@@ -292,13 +292,14 @@ static __init struct clk *hb_clk_init(struct device_node *node, const struct clk
of_property_read_string(node, "clock-output-names", &clk_name);
- hb_clk->hw.init = &init_data;
- hb_clk->hw.init->name = clk_name;
- hb_clk->hw.init->num_parents = 1;
+ init.name = clk_name;
+ init.ops = ops;
+ init.flags = 0;
parent_name = of_clk_get_parent_name(node, 0);
- hb_clk->hw.init->parent_names = &parent_name;
- hb_clk->hw.init->ops = ops;
- hb_clk->hw.init->flags = 0;
+ init.parent_names = &parent_name;
+ init.num_parents = 1;
+
+ hb_clk->hw.init = &init;
clk = clk_register(NULL, &hb_clk->hw);
if (WARN_ON(IS_ERR(clk))) {