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: Josh Cartwright X-Patchwork-Id: 2848440 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AF670BF546 for ; Thu, 22 Aug 2013 22:57:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5B14203FD for ; Thu, 22 Aug 2013 22:57:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1262B203F1 for ; Thu, 22 Aug 2013 22:57:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754282Ab3HVW5K (ORCPT ); Thu, 22 Aug 2013 18:57:10 -0400 Received: from smtp.codeaurora.org ([198.145.11.231]:56753 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754309Ab3HVW5E (ORCPT ); Thu, 22 Aug 2013 18:57:04 -0400 Received: from smtp.codeaurora.org (localhost [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 6A3C113EF9E; Thu, 22 Aug 2013 22:57:04 +0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 486) id 5854013F284; Thu, 22 Aug 2013 22:57:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, DATE_IN_PAST_96_XX, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from joshc.qualcomm.com (rrcs-67-52-129-61.west.biz.rr.com [67.52.129.61]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: joshc@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id AE86A13EF9E; Thu, 22 Aug 2013 22:57:03 +0000 (UTC) Received: by joshc.qualcomm.com (Postfix, from userid 1000) id 8AAC160CA2; Thu, 22 Aug 2013 17:56:44 -0500 (CDT) Message-Id: <0fed3abba1286c59e51087efa02514d79e79ac14.1377202730.git.joshc@codeaurora.org> In-Reply-To: References: From: Josh Cartwright Date: Mon, 10 Dec 2012 20:41:31 +0100 To: Grant Likely , Rob Herring , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Sagar Dharia , Gilad Avidov , Michael Bohan , Sylwester Nawrocki , Kyungmin Park Subject: [PATCH RFC v2 1/5] of: Add empty for_each_available_child_of_node() macro definition X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Level: ** X-Virus-Scanned: ClamAV using ClamSMTP From: Sylwester Nawrocki 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 --- This patch was first introduced in December @ http://thread.gmane.org/gmane.linux.drivers.devicetree/26315 include/linux/of.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 1fd08ca..fefffb3 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -369,6 +369,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)