From patchwork Fri Mar 18 18:24:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 670 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:44:36 -0000 Delivered-To: patches@linaro.org Received: by 10.220.28.198 with SMTP id n6cs33327vcc; Fri, 18 Mar 2011 11:21:55 -0700 (PDT) Received: by 10.43.59.72 with SMTP id wn8mr2177568icb.48.1300472514786; Fri, 18 Mar 2011 11:21:54 -0700 (PDT) Received: from mail-iw0-f178.google.com (mail-iw0-f178.google.com [209.85.214.178]) by mx.google.com with ESMTPS id q7si6464433ibb.57.2011.03.18.11.21.54 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2011 11:21:54 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.214.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.214.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by mail-iw0-f178.google.com with SMTP id 9so5339142iwn.37 for ; Fri, 18 Mar 2011 11:21:54 -0700 (PDT) Received: by 10.42.137.5 with SMTP id w5mr2044528ict.210.1300472514304; Fri, 18 Mar 2011 11:21:54 -0700 (PDT) Received: from localhost.localdomain ([114.216.152.45]) by mx.google.com with ESMTPS id mv26sm736763ibb.6.2011.03.18.11.21.49 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 18 Mar 2011 11:21:53 -0700 (PDT) From: Shawn Guo To: devicetree-discuss@lists.ozlabs.org Cc: linaro-dev@lists.linaro.org, patches@linaro.org, grant.likely@secretlab.ca, 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> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1300472672-13392-1-git-send-email-shawn.guo@linaro.org> References: <1300472672-13392-1-git-send-email-shawn.guo@linaro.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)