From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shawn Guo Subject: [PATCH v2 3/6] dt: add new member 'clk' into device_node Date: Sat, 19 Mar 2011 02:24:29 +0800 Message-ID: <1300472672-13392-4-git-send-email-shawn.guo@linaro.org> References: <1300472672-13392-1-git-send-email-shawn.guo@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1300472672-13392-1-git-send-email-shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linaro-dev-bounces-cunTk1MwBs8s++Sfvej+rw@public.gmane.org Errors-To: linaro-dev-bounces-cunTk1MwBs8s++Sfvej+rw@public.gmane.org To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Cc: linaro-dev-cunTk1MwBs8s++Sfvej+rw@public.gmane.org, patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org 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 --- 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