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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Aug 2016 09:49:28 +0000 (11:49 +0200)
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>
drivers/clk/rockchip/clk-mmc-phase.c

index 2685644826a06ed5a6f21240ad8af040bf4b0b9e..33c20c6b45afc0b41665167d0f043eaaa8af18e2 100644 (file)
@@ -153,6 +153,7 @@ struct clk *rockchip_clk_register_mmc(const char *name,
                return NULL;
 
        init.name = name;
+       init.flags = 0;
        init.num_parents = num_parents;
        init.parent_names = parent_names;
        init.ops = &rockchip_mmc_clk_ops;