ARM: 7131/1: clkdev: Add Common Macro for clk_lookup
[pandora-kernel.git] / include / linux / clkdev.h
index 457bcb0..d9a4fd0 100644 (file)
@@ -24,6 +24,13 @@ struct clk_lookup {
        struct clk              *clk;
 };
 
+#define CLKDEV_INIT(d, n, c)   \
+       {                       \
+               .dev_id = d,    \
+               .con_id = n,    \
+               .clk = c,       \
+       }
+
 struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id,
        const char *dev_fmt, ...);