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....@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


_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to