Skip to content

Commit 68f9903

Browse files
mmindgregkh
authored andcommitted
clk: rockchip: initialize flags of clk_init_data in mmc-phase clock
commit 595144c1141c951a3c6bb9004ae6a2bc29aad66f upstream. 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") Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 9162d29 commit 68f9903

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/clk/rockchip/clk-mmc-phase.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ struct clk *rockchip_clk_register_mmc(const char *name,
153153
return NULL;
154154

155155
init.name = name;
156+
init.flags = 0;
156157
init.num_parents = num_parents;
157158
init.parent_names = parent_names;
158159
init.ops = &rockchip_mmc_clk_ops;

0 commit comments

Comments
 (0)