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: 1320121 Return-Path: X-Original-To: patchwork-linux-omap@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 AE44A402E1 for ; Tue, 14 Aug 2012 14:23:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756359Ab2HNOXf (ORCPT ); Tue, 14 Aug 2012 10:23:35 -0400 Received: from na3sys009aog127.obsmtp.com ([74.125.149.107]:51580 "EHLO na3sys009aog127.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756303Ab2HNOXd (ORCPT ); Tue, 14 Aug 2012 10:23:33 -0400 Received: from mail-qa0-f44.google.com ([209.85.216.44]) (using TLSv1) by na3sys009aob127.postini.com ([74.125.148.12]) with SMTP ID DSNKUCpfWWixZLkzhpG1pANd9q++necw9uMx@postini.com; Tue, 14 Aug 2012 07:23:32 PDT Received: by qadb17 with SMTP id b17so2626235qad.3 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=hA0OxDuhbQs6cgDi4oWL0A31ToYRCh8BPa4dT3a7yfu7eiZ/1ea9De3A+h2O8+J8SZ 1mKBzNPlJJOZ35dM/6qDT8FzffVvH7lfxR19gKI8OONfO/aEroZKGtniEm4JAGmCyvlx lh0nGHii2gHFYXoFYZ3VQIPclbnM6s1YKKKxHZNA+//drWSHON1ieCbzEIKwUucKDXbj Y739dVnaGEDTU9fRQNSViTWMlJImVBPHTXgwHsdMqc6QZTjrcsDiVJjMeFO465IeGhw2 YQk4GtGb5Pge8/SUMbMH9eqeKwnQIugjrUOuDkgrYzQNkymXOGgF2JoMU/n0AXRrwX1z 3FbQ== 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 Cc: Tero Kristo , alsa-devel@alsa-project.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree-discuss@lists.ozlabs.org, Benoit Cousson , linux-kernel@vger.kernel.org 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: ALoCoQmS7WTDQIWudHNvSu6srwpWnGSHM7a/3un1kuEOcMz6tqKPQyvf6PbAAGnEWm+NPyMXoEWG Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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;