summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-nomadik/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2011-08-08 23:17:15 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2011-08-10 14:53:06 +0200
commite18df20c902b83f7526fd62a27c0f6a2d67df3cb (patch)
tree92480fee3be0506aeeb95d743793d99f1ea32cfa /arch/arm/mach-nomadik/include
parent41452449754c473e32c56147f915fed660cd3071 (diff)
downloadbarebox-e18df20c902b83f7526fd62a27c0f6a2d67df3cb.tar.gz
barebox-e18df20c902b83f7526fd62a27c0f6a2d67df3cb.tar.xz
nomadik: switch to static allocation clkdev
as we need to register it before the device Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-nomadik/include')
-rw-r--r--arch/arm/mach-nomadik/include/mach/clkdev.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-nomadik/include/mach/clkdev.h b/arch/arm/mach-nomadik/include/mach/clkdev.h
index 04b37a8980..a9092a213d 100644
--- a/arch/arm/mach-nomadik/include/mach/clkdev.h
+++ b/arch/arm/mach-nomadik/include/mach/clkdev.h
@@ -4,4 +4,10 @@
#define __clk_get(clk) ({ 1; })
#define __clk_put(clk) do { } while (0)
+#define CLKDEV_CON_ID(_id, _clk) \
+ { \
+ .con_id = _id, \
+ .clk = _clk, \
+ }
+
#endif