Skip to contentSkip to conversation

clk: don't include mach/clkdev.h for common struct clk

PATCH New Rob Herring 1 participant 1 message Apr 29, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: don't include mach/clkdev.h for common struct clk

From: Rob Herring <[email protected]>

Machine __clk_get/put definitions conflict with common struct clk definitions.

The whole point of a common struct clk is to share same definitions, so machine specific definitions should not get included.

---

Jeremy,

Can you add this to your tree or just merge into your patch.

Rob

 arch/arm/include/asm/clkdev.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/include/asm/clkdev.h +2 -0
index 765d332..bf27fb4 100644
@@ -14,7 +14,9 @@
 
 #include <linux/slab.h>
 
+#ifndef CONFIG_USE_COMMON_STRUCT_CLK
 #include <mach/clkdev.h>
+#endif
 
 static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
 {
Signature · 1 line
1.7.1