clk: mvebu: fix setting unwanted flags in CP110 gate clock
authorMarcin Wojtas <mw@semihalf.com>
Wed, 21 Sep 2016 09:05:57 +0000 (11:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2016 10:06:47 +0000 (12:06 +0200)
commitb39e0f1c6a6aa89891eafbbf7799b5bcd100a2c4
tree34c2aac5a7f2041d7bcfb7a95626411a6286412e
parent025b5d0d8c31ab3d332f2b3eb04d469e6a95514c
clk: mvebu: fix setting unwanted flags in CP110 gate clock

commit ad715b268a501533ecb2e891a624841d1bb5137c upstream.

Armada CP110 system controller comprises its own routine responsble
for registering gate clocks. Among others 'flags' field in
struct clk_init_data was not set, using a random values, which
may cause an unpredicted behavior.

This patch fixes the problem by resetting all fields of clk_init_data
before assigning values for all gated clocks of Armada 7k/8k SoCs family.

Fixes: d3da3eaef7f4 ("clk: mvebu: new driver for Armada CP110 system ...")
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/mvebu/cp110-system-controller.c