From 196a57c2749119be4732cc2b2adb8aafcb4fcb14 Mon Sep 17 00:00:00 2001 From: Padmavathi Venna Date: Thu, 13 Oct 2011 12:56:32 +0100 Subject: [PATCH] ARM: 7131/1: clkdev: Add Common Macro for clk_lookup Added a standardized macro CLKDEV_INIT which can used across all the platforms to support clkdev Suggested-by: Russell King Acked-by: H Hartley Sweeten Acked-by: Kukjin Kim Signed-off-by: Padmavathi Venna Signed-off-by: Rajeshwari Shinde Signed-off-by: Russell King --- include/linux/clkdev.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h index 457bcb0a310a..d9a4fd028c9d 100644 --- a/include/linux/clkdev.h +++ b/include/linux/clkdev.h @@ -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, ...);