diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2014-10-26 14:07:32 +0100 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2014-10-30 02:14:57 +0100 |
commit | b6c461d2791ce738bf14fc796e65b9a00072de96 (patch) | |
tree | e9cdd7437973b0ad6680f01d67c41cc1c5901a35 /arch/arm/mach-shmobile/clock.c | |
parent | Merge tag 'renesas-dt-cleanups-for-v3.19' into koelsch-board-removal-for-v3.1... (diff) | |
download | linux-b6c461d2791ce738bf14fc796e65b9a00072de96.tar.xz linux-b6c461d2791ce738bf14fc796e65b9a00072de96.zip |
ARM: shmobile: Remove shmobile_clk_workaround() implementation
The function isn't used or needed anymore, remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/clock.c')
-rw-r--r-- | arch/arm/mach-shmobile/clock.c | 32 |
1 files changed, 3 insertions, 29 deletions
diff --git a/arch/arm/mach-shmobile/clock.c b/arch/arm/mach-shmobile/clock.c index 1f81ad747153..34f056fc3756 100644 --- a/arch/arm/mach-shmobile/clock.c +++ b/arch/arm/mach-shmobile/clock.c @@ -15,36 +15,12 @@ * GNU General Public License for more details. * */ + +#include <linux/export.h> #include <linux/kernel.h> #include <linux/init.h> - -#ifdef CONFIG_COMMON_CLK -#include <linux/clk.h> -#include <linux/clkdev.h> -#include "clock.h" - -void __init shmobile_clk_workaround(const struct clk_name *clks, - int nr_clks, bool enable) -{ - const struct clk_name *clkn; - struct clk *clk; - unsigned int i; - - for (i = 0; i < nr_clks; ++i) { - clkn = clks + i; - clk = clk_get(NULL, clkn->clk); - if (!IS_ERR(clk)) { - clk_register_clkdev(clk, clkn->con_id, clkn->dev_id); - if (enable) - clk_prepare_enable(clk); - clk_put(clk); - } - } -} - -#else /* CONFIG_COMMON_CLK */ #include <linux/sh_clk.h> -#include <linux/export.h> + #include "clock.h" #include "common.h" @@ -80,5 +56,3 @@ void __clk_put(struct clk *clk) { } EXPORT_SYMBOL(__clk_put); - -#endif /* CONFIG_COMMON_CLK */ |