Commit 01a129f8 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Sasha Levin

clk: rockchip: initialize flags of clk_init_data in mmc-phase clock

[ Upstream commit 595144c1 ]

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: 89bf26cb ("clk: rockchip: Add support for the mmc clock phases using the framework")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 039f5979
...@@ -131,6 +131,7 @@ struct clk *rockchip_clk_register_mmc(const char *name, ...@@ -131,6 +131,7 @@ struct clk *rockchip_clk_register_mmc(const char *name,
if (!mmc_clock) if (!mmc_clock)
return NULL; return NULL;
init.flags = 0;
init.num_parents = num_parents; init.num_parents = num_parents;
init.parent_names = parent_names; init.parent_names = parent_names;
init.ops = &rockchip_mmc_clk_ops; init.ops = &rockchip_mmc_clk_ops;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment