diff options
author | Heiko Stuebner <heiko@sntech.de> | 2016-05-17 20:57:50 +0200 |
---|---|---|
committer | Sasha Levin <sasha.levin@oracle.com> | 2016-07-10 20:19:51 -0400 |
commit | 01a129f8a323fc3c393a4d55851f5c671f4c9a4e (patch) | |
tree | 905079b142a1a4de9a32b6bd1e3ff0e8523c7296 /drivers/clk | |
parent | 039f59796079951d6e0ffb40d7882b5597e5e16c (diff) |
clk: rockchip: initialize flags of clk_init_data in mmc-phase clock
[ Upstream commit 595144c1141c951a3c6bb9004ae6a2bc29aad66f ]
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: 89bf26cbc1a0 ("clk: rockchip: Add support for the mmc clock phases using the framework")
Cc: stable@vger.kernel.org
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/rockchip/clk-mmc-phase.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/rockchip/clk-mmc-phase.c b/drivers/clk/rockchip/clk-mmc-phase.c index c842e3b60f21..2c111c2cdccc 100644 --- a/drivers/clk/rockchip/clk-mmc-phase.c +++ b/drivers/clk/rockchip/clk-mmc-phase.c @@ -131,6 +131,7 @@ struct clk *rockchip_clk_register_mmc(const char *name, if (!mmc_clock) return NULL; + init.flags = 0; init.num_parents = num_parents; init.parent_names = parent_names; init.ops = &rockchip_mmc_clk_ops; |