clk: rockchip: initialize flags of clk_init_data in mmc-phase clock
authorHeiko Stuebner <heiko@sntech.de>
Tue, 17 May 2016 18:57:50 +0000 (20:57 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 30 May 2016 07:40:23 +0000 (09:40 +0200)
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>
drivers/clk/rockchip/clk-mmc-phase.c

index bc856f21f6b20d35e2c421c51a54e1718274302e..460113008bd9330e1e8aaf582de521f221a84705 100644 (file)
@@ -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;
This page took 0.0321 seconds and 5 git commands to generate.