From: Alexandre Belloni Date: Wed, 30 Sep 2015 11:02:01 +0000 (+0200) Subject: clk: at91: pmc: drop at91_pmc_base X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af719c18075f76f83e363bd13a97937b2e9f3f7d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git clk: at91: pmc: drop at91_pmc_base at91_pmc_base is not used anymore, remove it along with at91_pmc_read and at91_pmc_write. Signed-off-by: Alexandre Belloni Acked-by: Boris Brezillon Acked-by: Stephen Boyd --- diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index 361ea0c1d3c9..dce285549de2 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include @@ -29,9 +28,6 @@ struct at91_pmc { const struct at91_pmc_caps *caps; }; -void __iomem *at91_pmc_base; -EXPORT_SYMBOL_GPL(at91_pmc_base); - int of_at91_get_clk_range(struct device_node *np, const char *propname, struct clk_range *range) { @@ -108,11 +104,8 @@ static void __init of_at91_pmc_setup(struct device_node *np, const struct at91_pmc_caps *caps) { struct at91_pmc *pmc; - void __iomem *regbase = of_iomap(np, 0); struct regmap *regmap; - at91_pmc_base = regbase; - regmap = syscon_node_to_regmap(np); if (IS_ERR(regmap)) panic("Could not retrieve syscon regmap"); diff --git a/include/linux/clk/at91_pmc.h b/include/linux/clk/at91_pmc.h index 1e6932222e11..17f413bbbedf 100644 --- a/include/linux/clk/at91_pmc.h +++ b/include/linux/clk/at91_pmc.h @@ -16,18 +16,6 @@ #ifndef AT91_PMC_H #define AT91_PMC_H -#ifndef __ASSEMBLY__ -extern void __iomem *at91_pmc_base; - -#define at91_pmc_read(field) \ - readl_relaxed(at91_pmc_base + field) - -#define at91_pmc_write(field, value) \ - writel_relaxed(value, at91_pmc_base + field) -#else -.extern at91_pmc_base -#endif - #define AT91_PMC_SCER 0x00 /* System Clock Enable Register */ #define AT91_PMC_SCDR 0x04 /* System Clock Disable Register */