diff options
author | Heiko Stuebner <heiko@sntech.de> | 2016-05-17 20:57:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-10 12:54:47 +0200 |
commit | 690a5f1e8e725a8eb799f281d08fcc3b7f3e2b4a (patch) | |
tree | ca55f0122fb3cffb0e22a0b7d6fe84c2aaa0fb3e | |
parent | bb70d865a93137abda0f7925344dd9e0591b9677 (diff) | |
download | lwn-690a5f1e8e725a8eb799f281d08fcc3b7f3e2b4a.tar.gz lwn-690a5f1e8e725a8eb799f281d08fcc3b7f3e2b4a.zip |
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: 89bf26cbc1a0 ("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>
-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 e0dc7e83403a..102399f3c550 100644 --- a/drivers/clk/rockchip/clk-mmc-phase.c +++ b/drivers/clk/rockchip/clk-mmc-phase.c @@ -153,6 +153,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; |