linux/drivers/clk/mvebu
Marcin Wojtas a0245eb76a 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: d3da3eaef7 ("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>
2016-09-22 16:05:07 -07:00
..
Kconfig clk: mvebu: Add the xtal clock for Armada 3700 SoC 2016-08-15 14:07:04 -07:00
Makefile clk: mvebu: Add the peripheral clock driver for Armada 3700 2016-08-15 14:10:27 -07:00
ap806-system-controller.c clk: mvebu: new driver for Armada AP806 system controller 2016-05-06 15:13:56 -07:00
armada-37xx-periph.c clk: mvebu: Remove redundant dev_err call in armada_3700_periph_clock_probe() 2016-08-24 01:04:54 -07:00
armada-37xx-tbg.c clk: mvebu Add the time base generator clocks for Armada 3700 2016-08-15 14:10:20 -07:00
armada-37xx-xtal.c clk: mvebu: Add the xtal clock for Armada 3700 SoC 2016-08-15 14:07:04 -07:00
armada-38x.c clk: mvebu: add clock support for Armada 380/385 2014-02-17 02:34:05 +00:00
armada-39x.c clk: mvebu: armada-39x: add clk description for supported interfaces 2016-08-12 18:20:01 -07:00
armada-370.c clk: mvebu: flag the crypto clk as CLK_IGNORE_UNUSED 2015-06-18 13:51:45 -07:00
armada-375.c clk: mvebu: armada-375: Fix the description of the SAR in the comment 2014-09-09 15:15:22 +00:00
armada-xp.c clk: mvebu: armada-xp: maintain clock init order 2014-02-06 18:06:50 +00:00
clk-corediv.c clk: mvebu: Support Armada 380 SoC on the core divider clock 2014-03-13 23:24:23 +00:00
clk-cpu.c clk: mvebu: Use of_clk_get_parent_name() 2015-10-16 16:35:43 -07:00
common.c clk: mvebu: Remove CLK_IS_ROOT 2016-03-03 11:26:42 -08:00
common.h clk: mvebu: extend common code to allow an optional refclk 2015-03-04 15:18:48 +01:00
cp110-system-controller.c clk: mvebu: dynamically allocate resources in Armada CP110 system controller 2016-09-22 16:05:07 -07:00
dove-divider.c clk: mvebu: Remove CLK_IS_ROOT 2016-03-03 11:26:42 -08:00
dove-divider.h clk: add Dove PLL divider support for GPU, VMeta and AXI clocks 2015-12-22 12:25:00 -08:00
dove.c clk: add Dove PLL divider support for GPU, VMeta and AXI clocks 2015-12-22 12:25:00 -08:00
kirkwood.c clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h 2016-01-29 12:59:50 -08:00
orion.c clk: mvebu: add Orion5x clock driver 2014-04-26 01:03:55 +00:00