[PATCH v2 3/6] dt: add new member 'clk' into device_node
Shawn Guo
shawn.guo at linaro.org
Sat Mar 19 05:24:29 EST 2011
This pointer to 'struct clk' is added to save the reference to 'clk'
which is dynamically created per dt clock node, so that clkdev API
like clk_get can work with dt based device driver.
Signed-off-by: Shawn Guo <shawn.guo at linaro.org>
---
include/linux/of.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/linux/of.h b/include/linux/of.h
index d9dd664..e621295 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -54,6 +54,7 @@ struct device_node {
struct device_node *allnext; /* next in list of all nodes */
struct proc_dir_entry *pde; /* this node's proc directory */
struct kref kref;
+ struct clk *clk;
unsigned long _flags;
void *data;
#if defined(CONFIG_SPARC)
--
1.7.1
More information about the devicetree-discuss
mailing list