Skip to content

Commit af719c1

Browse files
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 <alexandre.belloni@free-electrons.com> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Acked-by: Stephen Boyd <sboyd@codeaurora.org>
1 parent 4747639 commit af719c1

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

drivers/clk/at91/pmc.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include <linux/clkdev.h>
1313
#include <linux/clk/at91_pmc.h>
1414
#include <linux/of.h>
15-
#include <linux/of_address.h>
1615
#include <linux/mfd/syscon.h>
1716
#include <linux/regmap.h>
1817

@@ -29,9 +28,6 @@ struct at91_pmc {
2928
const struct at91_pmc_caps *caps;
3029
};
3130

32-
void __iomem *at91_pmc_base;
33-
EXPORT_SYMBOL_GPL(at91_pmc_base);
34-
3531
int of_at91_get_clk_range(struct device_node *np, const char *propname,
3632
struct clk_range *range)
3733
{
@@ -108,11 +104,8 @@ static void __init of_at91_pmc_setup(struct device_node *np,
108104
const struct at91_pmc_caps *caps)
109105
{
110106
struct at91_pmc *pmc;
111-
void __iomem *regbase = of_iomap(np, 0);
112107
struct regmap *regmap;
113108

114-
at91_pmc_base = regbase;
115-
116109
regmap = syscon_node_to_regmap(np);
117110
if (IS_ERR(regmap))
118111
panic("Could not retrieve syscon regmap");

include/linux/clk/at91_pmc.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@
1616
#ifndef AT91_PMC_H
1717
#define AT91_PMC_H
1818

19-
#ifndef __ASSEMBLY__
20-
extern void __iomem *at91_pmc_base;
21-
22-
#define at91_pmc_read(field) \
23-
readl_relaxed(at91_pmc_base + field)
24-
25-
#define at91_pmc_write(field, value) \
26-
writel_relaxed(value, at91_pmc_base + field)
27-
#else
28-
.extern at91_pmc_base
29-
#endif
30-
3119
#define AT91_PMC_SCER 0x00 /* System Clock Enable Register */
3220
#define AT91_PMC_SCDR 0x04 /* System Clock Disable Register */
3321

0 commit comments

Comments
 (0)