Skip to content

Commit

Permalink
clk: rockchip: initialize flags of clk_init_data in mmc-phase clock
Browse files Browse the repository at this point in the history
The flags element of clk_init_data was never initialized for mmc-
phase-clocks resulting in the element containing a random value
and thus possibly enabling unwanted clock flags.

Fixes: 89bf26c ("clk: rockchip: Add support for the mmc clock phases using the framework")
Cc: [email protected]
Signed-off-by: Heiko Stuebner <[email protected]>
  • Loading branch information
mmind committed May 30, 2016
1 parent 1a695a9 commit 595144c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/clk/rockchip/clk-mmc-phase.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ struct clk *rockchip_clk_register_mmc(const char *name,
return ERR_PTR(-ENOMEM);

init.name = name;
init.flags = 0;
init.num_parents = num_parents;
init.parent_names = parent_names;
init.ops = &rockchip_mmc_clk_ops;
Expand Down

0 comments on commit 595144c

Please sign in to comment.