clk: mediatek: Remove unused code from MT8173.
authorJames Liao <jamesjj.liao@mediatek.com>
Tue, 28 Jul 2015 06:53:29 +0000 (14:53 +0800)
committerJames Liao <jamesjj.liao@mediatek.com>
Thu, 1 Oct 2015 04:04:49 +0000 (12:04 +0800)
Remove unused header files from MT8173, and remove unused
keywords from function declaration.

Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/clk/mediatek/clk-mt8173.c
drivers/clk/mediatek/clk-mtk.h

index 448e5dc1acd8b343f8b4f84a096d12a8a556bfd1..63e32fdb660fe849631fe3f7c2763bd41065fd18 100644 (file)
@@ -15,8 +15,6 @@
 #include <linux/clk.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/slab.h>
-#include <linux/mfd/syscon.h>
 
 #include "clk-mtk.h"
 #include "clk-gate.h"
index c5cbecb3d218c3d33e116db2d814819987067e8d..9f1982059cffb6d500c3838d544db1ab4500c329 100644 (file)
@@ -42,7 +42,7 @@ struct mtk_fixed_factor {
                .div = _div,                            \
        }
 
-extern void mtk_clk_register_factors(const struct mtk_fixed_factor *clks,
+void mtk_clk_register_factors(const struct mtk_fixed_factor *clks,
                int num, struct clk_onecell_data *clk_data);
 
 struct mtk_composite {
@@ -159,7 +159,7 @@ struct mtk_pll_data {
        const struct mtk_pll_div_table *div_table;
 };
 
-void __init mtk_clk_register_plls(struct device_node *node,
+void mtk_clk_register_plls(struct device_node *node,
                const struct mtk_pll_data *plls, int num_plls,
                struct clk_onecell_data *clk_data);