From patchwork Tue Aug 14 14:22:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1320611 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 8D2A4DF215 for ; Tue, 14 Aug 2012 14:39:19 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1T1ICK-0004dh-D6; Tue, 14 Aug 2012 14:34:21 +0000 Received: from na3sys009aog113.obsmtp.com ([74.125.149.209]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1T1I1I-0004ZZ-MO for linux-arm-kernel@lists.infradead.org; Tue, 14 Aug 2012 14:22:59 +0000 Received: from mail-qa0-f54.google.com ([209.85.216.54]) (using TLSv1) by na3sys009aob113.postini.com ([74.125.148.12]) with SMTP ID DSNKUCpfPj9yj3BqCVBly6jR+TKqGNceQBiG@postini.com; Tue, 14 Aug 2012 07:22:56 PDT Received: by qatn12 with SMTP id n12so377180qat.13 for ; Tue, 14 Aug 2012 07:22:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=zi4NNKTDcNkX8nmbultuHMGzc9VMDA64RlQC/BThDaM=; b=PdJDhVhD6AbOJpoP+zturtIOc4kz3FiFpyoUSp63S3PkxsSyjZWx0kuIgg4IfZgSNg m8xsJt9lu2HARPAo6aK2evaqMO3E3FZO5NdFEY74pZscEQH2K6RP51Aj7M57Drv8IPbl BSAseGxoRJa76WRLFHYYrgKbqiepitlMSHwFmne++N3e+pbi+L2Ajq+P5p88Xog3eVP3 K0htC+g4JRiL555Mj3KR+NO6lHENfCp6DwYJprT/dXQjADy9cJ2kOfeF5Ls/GcCI89l+ GncJPCRGZhHnFJ54SAZ/a1WHkW53WnLdEWgSrXEONgYit2HRvlYkKwOih24sk9PjEsBo WLog== Received: by 10.60.2.99 with SMTP id 3mr25621281oet.20.1344954173881; Tue, 14 Aug 2012 07:22:53 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id kc5sm2799741obb.21.2012.08.14.07.22.50 (version=SSLv3 cipher=OTHER); Tue, 14 Aug 2012 07:22:53 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren , Grant Likely , Rob Herring Subject: [PATCH v2 06/14] dt: Add empty of_find_node_by_name() function Date: Tue, 14 Aug 2012 17:22:34 +0300 Message-Id: <1344954162-7985-7-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.8.6 In-Reply-To: <1344954162-7985-1-git-send-email-peter.ujfalusi@ti.com> References: <1344954162-7985-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQnvudfvR7kbA2LUavzFeHrYzR4xexpBNirtF5ceT616QJZz2En/2sUg9odz8vNDHEh/CHTQ X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.209 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: alsa-devel@alsa-project.org, Benoit Cousson , devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org, Tero Kristo , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This commit adds an empty of_find_node_by_name() function for !CONFIG_OF builds. Signed-off-by: Peter Ujfalusi --- include/linux/of.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/include/linux/of.h b/include/linux/of.h index 5919ee3..c90e59a 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -308,6 +308,12 @@ static inline const char* of_node_full_name(struct device_node *np) return ""; } +static inline device_node *of_find_node_by_name(struct device_node *from, + const char *name) +{ + return NULL; +} + static inline bool of_have_populated_dt(void) { return false;