Commit af719c18 authored by Alexandre Belloni's avatar Alexandre Belloni

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: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Acked-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 4747639f
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include <linux/clkdev.h> #include <linux/clkdev.h>
#include <linux/clk/at91_pmc.h> #include <linux/clk/at91_pmc.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h>
#include <linux/mfd/syscon.h> #include <linux/mfd/syscon.h>
#include <linux/regmap.h> #include <linux/regmap.h>
...@@ -29,9 +28,6 @@ struct at91_pmc { ...@@ -29,9 +28,6 @@ struct at91_pmc {
const struct at91_pmc_caps *caps; 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, int of_at91_get_clk_range(struct device_node *np, const char *propname,
struct clk_range *range) struct clk_range *range)
{ {
...@@ -108,11 +104,8 @@ static void __init of_at91_pmc_setup(struct device_node *np, ...@@ -108,11 +104,8 @@ static void __init of_at91_pmc_setup(struct device_node *np,
const struct at91_pmc_caps *caps) const struct at91_pmc_caps *caps)
{ {
struct at91_pmc *pmc; struct at91_pmc *pmc;
void __iomem *regbase = of_iomap(np, 0);
struct regmap *regmap; struct regmap *regmap;
at91_pmc_base = regbase;
regmap = syscon_node_to_regmap(np); regmap = syscon_node_to_regmap(np);
if (IS_ERR(regmap)) if (IS_ERR(regmap))
panic("Could not retrieve syscon regmap"); panic("Could not retrieve syscon regmap");
......
...@@ -16,18 +16,6 @@ ...@@ -16,18 +16,6 @@
#ifndef AT91_PMC_H #ifndef AT91_PMC_H
#define 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_SCER 0x00 /* System Clock Enable Register */
#define AT91_PMC_SCDR 0x04 /* System Clock Disable Register */ #define AT91_PMC_SCDR 0x04 /* System Clock Disable Register */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment