From patchwork Mon Dec 10 19:41:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 1859631 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id B55AF3FCF2 for ; Mon, 10 Dec 2012 19:45:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752173Ab2LJTov (ORCPT ); Mon, 10 Dec 2012 14:44:51 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:17132 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752009Ab2LJTmP (ORCPT ); Mon, 10 Dec 2012 14:42:15 -0500 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MET00KSNYPV3HT0@mailout3.samsung.com>; Tue, 11 Dec 2012 04:42:14 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-28-50c63b167e3b Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id A9.98.12699.61B36C05; Tue, 11 Dec 2012 04:42:14 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MET001RRYPL2J70@mmp2.samsung.com>; Tue, 11 Dec 2012 04:42:14 +0900 (KST) From: Sylwester Nawrocki To: g.liakhovetski@gmx.de, linux-media@vger.kernel.org Cc: grant.likely@secretlab.ca, rob.herring@calxeda.com, thomas.abraham@linaro.org, t.figa@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Sylwester Nawrocki Subject: [PATCH RFC 05/13] of: Add empty for_each_available_child_of_node() macro definition Date: Mon, 10 Dec 2012 20:41:31 +0100 Message-id: <1355168499-5847-6-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1355168499-5847-1-git-send-email-s.nawrocki@samsung.com> References: <1355168499-5847-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jQV0x62MBBhdnWllc3jWHzaJnw1ZW ByaPz5vkAhijuGxSUnMyy1KL9O0SuDJ+rNvGWLCHreLWi2/sDYzrWbsYOTkkBEwk3rWcYoGw xSQu3FvP1sXIxSEkMJ1RovfsEWYIp4NJ4lbXMzaQKjYBQ4neo32MILaIgJnEu87HLCBFzAJ9 TBIn7/wCGyssECdxfE4/mM0ioCpx8vMEsBW8Aq4Si2dsYu9i5ABapyAxZ5INSJhTwE3i9aFW sJlCQCU/Zq5jnsDIu4CRYRWjaGpBckFxUnqukV5xYm5xaV66XnJ+7iZGsPefSe9gXNVgcYhR gINRiYdXQ+tYgBBrYllxZe4hRgkOZiUR3ggJoBBvSmJlVWpRfnxRaU5q8SFGaQ4WJXHeZo+U ACGB9MSS1OzU1ILUIpgsEwenVAOj0zV5Vjte9pd//nc/E/zrf8oj9JL0z00rfun/UhX6+fj/ KRfTJ2eNjBq2H//NpXzm6Yyb2Xzt7Qxvn/275uho82OtVGtjOFsZS8STy69uqM/7GDbxBNcH 5/0K0qt/dRacnH/p/QEjWbNILb9fKcvco/7kubyOZNiwqvXGhhVlojkqnEZtyq+VlFiKMxIN tZiLihMBiTY7wPoBAAA= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add this empty macro definition so users can be compiled without excluding this macro call with preprocessor directives when CONFIG_OF is disabled. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- include/linux/of.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 2fb0dbe..7df42cc 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -332,6 +332,9 @@ static inline bool of_have_populated_dt(void) #define for_each_child_of_node(parent, child) \ while (0) +#define for_each_available_child_of_node(parent, child) \ + while (0) + static inline struct device_node *of_get_child_by_name( const struct device_node *node, const char *name)