Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1236501

[PATCH 16/16] clk: at91: pmc: drop at91_pmc_base

From Alexandre Belloni <alexandre.belloni@free-electrons.com>
Newsgroups linux.kernel
Subject [PATCH 16/16] clk: at91: pmc: drop at91_pmc_base
Date 2015-09-30 18:20 +0200
Message-ID <qesgP-1GU-53@gated-at.bofh.it> (permalink)
References <qesgN-1GU-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 drivers/clk/at91/pmc.c       |  5 -----
 include/linux/clk/at91_pmc.h | 12 ------------
 2 files changed, 17 deletions(-)

diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c
index 3e150967b45e..79d8cbc74be5 100644
--- a/drivers/clk/at91/pmc.c
+++ b/drivers/clk/at91/pmc.c
@@ -41,9 +41,6 @@ struct at91_pmc {
 	u32 imr;
 };
 
-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)
 {
@@ -240,8 +237,6 @@ static int __init atmel_pmc_probe(struct platform_device *pdev)
 	int virq;
 	int ret = 0;
 
-	at91_pmc_base = of_iomap(np, 0);
-
 	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 7669f7618f39..b80b98b4df63 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 */
 
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 00/16] ARM: at91: PMC driver rework Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 06/16] clk: at91: clk-main: factorize irq handling Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
    Re: [PATCH 06/16] clk: at91: clk-main: factorize irq handling Boris Brezillon <boris.brezillon@free-electrons.com> - 2015-10-01 10:40 +0200
  [PATCH 03/16] ARM: at91/dt: use syscon for PMC Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 07/16] clk: at91: make IRQ optional and register them later Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 11/16] ARM: at91: pm: simply call at91_pm_init Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 10/16] clk: at91: pmc: move pmc structures to C file Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 14/16] ARM: at91: remove useless includes and function prototypes Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 16/16] clk: at91: pmc: drop at91_pmc_base Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 02/16] clk: at91: system: don't try to free_irq when there is no IRQ Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 12/16] ARM: at91: pm: find and remap the pmc Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 15/16] usb: gadget: atmel: access the PMC using regmap Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
    Re: [PATCH 15/16] usb: gadget: atmel: access the PMC using regmap Felipe Balbi <balbi@ti.com> - 2015-09-30 18:40 +0200
      Re: [PATCH 15/16] usb: gadget: atmel: access the PMC using regmap Nicolas Ferre <nicolas.ferre@atmel.com> - 2015-09-30 18:40 +0200
        Re: [PATCH 15/16] usb: gadget: atmel: access the PMC using regmap Felipe Balbi <balbi@ti.com> - 2015-09-30 18:50 +0200
      Re: [PATCH 15/16] usb: gadget: atmel: access the PMC using regmap Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 19:00 +0200
        Re: [PATCH 15/16] usb: gadget: atmel: access the PMC using regmap Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 19:10 +0200
  [PATCH 01/16] clk: at91: utmi: use pmc_read when the at91_pmc is available Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 13/16] ARM: at91: pm: move idle functions to pm.c Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
  [PATCH 08/16] clk: at91: only enable available IRQs Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:20 +0200
    Re: [PATCH 08/16] clk: at91: only enable available IRQs Ludovic Desroches <ludovic.desroches@atmel.com> - 2015-10-01 10:30 +0200
  Re: [PATCH 00/16] ARM: at91: PMC driver rework Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2015-09-30 18:30 +0200

csiph-web