diff options
author | Marcin Wojtas <mw@semihalf.com> | 2016-09-21 09:05:58 (GMT) |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-09-22 23:05:07 (GMT) |
commit | a0245eb76ad0f652f1eb14f48ca2d3c4391aef66 (patch) | |
tree | 6b271a6619b76230cc6c5e1de5eb167173e059b0 /drivers/clk/zte/clk-zx296718.c | |
parent | ad715b268a501533ecb2e891a624841d1bb5137c (diff) | |
download | linux-a0245eb76ad0f652f1eb14f48ca2d3c4391aef66.tar.xz |
clk: mvebu: dynamically allocate resources in Armada CP110 system controller
Original commit, which added support for Armada CP110 system controller
used global variables for storing all clock information. It worked
fine for Armada 7k SoC, with single CP110 block. After dual-CP110 Armada 8k
was introduced, the data got overwritten and corrupted.
This patch fixes the issue by allocating resources dynamically in the
driver probe and storing it as platform drvdata.
Fixes: d3da3eaef7f4 ("clk: mvebu: new driver for Armada CP110 system ...")
Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/zte/clk-zx296718.c')
0 files changed, 0 insertions, 0 deletions