Browse Source

clk: at91: pmc: move pmc structures to C file

pmc.c is now the only user of struct at91_pmc*, move their definition in
the C file.

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>
Alexandre Belloni 10 years ago
parent
commit
ea52bc6467
2 changed files with 9 additions and 9 deletions
  1. 9 0
      drivers/clk/at91/pmc.c
  2. 0 9
      drivers/clk/at91/pmc.h

+ 9 - 0
drivers/clk/at91/pmc.c

@@ -20,6 +20,15 @@
 
 
 #include "pmc.h"
 #include "pmc.h"
 
 
+struct at91_pmc_caps {
+	u32 available_irqs;
+};
+
+struct at91_pmc {
+	struct regmap *regmap;
+	const struct at91_pmc_caps *caps;
+};
+
 void __iomem *at91_pmc_base;
 void __iomem *at91_pmc_base;
 EXPORT_SYMBOL_GPL(at91_pmc_base);
 EXPORT_SYMBOL_GPL(at91_pmc_base);
 
 

+ 0 - 9
drivers/clk/at91/pmc.h

@@ -26,15 +26,6 @@ struct clk_range {
 
 
 #define CLK_RANGE(MIN, MAX) {.min = MIN, .max = MAX,}
 #define CLK_RANGE(MIN, MAX) {.min = MIN, .max = MAX,}
 
 
-struct at91_pmc_caps {
-	u32 available_irqs;
-};
-
-struct at91_pmc {
-	struct regmap *regmap;
-	const struct at91_pmc_caps *caps;
-};
-
 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);