clk: Add common __clk_get(), __clk_put() implementations
[linux-2.6-microblaze.git] / arch / sh / include / asm / clkdev.h
index 6ba9186..c419014 100644 (file)
@@ -25,7 +25,9 @@ static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
                return kzalloc(size, GFP_KERNEL);
 }
 
+#ifndef CONFIG_COMMON_CLK
 #define __clk_put(clk)
 #define __clk_get(clk) ({ 1; })
+#endif
 
 #endif /* __CLKDEV_H__ */