]> git.karo-electronics.de Git - linux-beck.git/commit
clk: socfpga: Map the clk manager base address in the clock driver
authorDinh Nguyen <dinguyen@altera.com>
Mon, 9 Dec 2013 23:16:38 +0000 (17:16 -0600)
committerMike Turquette <mturquette@linaro.org>
Tue, 18 Feb 2014 22:08:07 +0000 (14:08 -0800)
commit6a7e71221d4e6cd185a51e2659f279da67f2e22d
tree9d498dd18b323f6cdacb93869ebed76ba4f0b69d
parent6d0abeca3242a88cab8232e4acd7e2bf088f3bc2
clk: socfpga: Map the clk manager base address in the clock driver

The clk manager's base address was being mapped in SOCFPGA's arch code and
being extern'ed out to the clock driver. This method is not correct, and the
arch code was not really doing anything with that clk manager anyways.

This patch moves the mapping of the clk manager's base address in the clock
driver itself. Cleans up CLK_OF_DECLARE() into a single registration of all
the clocks.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
---
v2: Use a static declaration for the clk_mgr_base_addr. Clean up the
    CLK_OF_DECLARE() as suggested by Arnd.
arch/arm/mach-socfpga/socfpga.c
drivers/clk/socfpga/clk.c