From patchwork Mon Sep 10 10:46:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1431441 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 48DA2DF28C for ; Mon, 10 Sep 2012 10:49:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756910Ab2IJKqc (ORCPT ); Mon, 10 Sep 2012 06:46:32 -0400 Received: from na3sys009aog136.obsmtp.com ([74.125.149.85]:54848 "EHLO na3sys009aog136.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757205Ab2IJKq3 (ORCPT ); Mon, 10 Sep 2012 06:46:29 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]) (using TLSv1) by na3sys009aob136.postini.com ([74.125.148.12]) with SMTP ID DSNKUE3FBOnlsu1k+AlGqlWO2y7mT/TKLN1o@postini.com; Mon, 10 Sep 2012 03:46:29 PDT Received: by obbuo13 with SMTP id uo13so2658708obb.19 for ; Mon, 10 Sep 2012 03:46:28 -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=k3QqKLsqm963CKYuZNIim0r4d9fNhvmIXYJzPEV2dJw=; b=ILbmIJu0y1YLCQvq0XGd0FR9AhurxkCs/ju1hHNcKqTz2Oll6t0YkFuWdQEwQvpmJ+ xX3k2+tLy1BkfrVTpCOXIfbxGct0rqUlz3xJdkanpiBhaqRZ5alvBp2qD5OLOmP11txP zIjeYHPofbVPlc+23HXpMVP/0UNLERMHbgdQewv5Fkl9Rj901z4CaZ+p4QzE7vA/O0+4 NIgZd5UXKV0ybm6wRPxmPJHIqtJB7w3SabANQf157RImv7GHwJXwCpPxot2F9AlfmmWR Span4H2QGbRAhQD3ACfE/3iZK7JPnsu7qVvHr8NmPrKH7bjDAZcLscz8+SV9p8zMOQku NQgA== Received: by 10.60.30.170 with SMTP id t10mr13328090oeh.10.1347273988226; Mon, 10 Sep 2012 03:46:28 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id 5sm8888098oeq.4.2012.09.10.03.46.24 (version=SSLv3 cipher=OTHER); Mon, 10 Sep 2012 03:46:27 -0700 (PDT) From: Peter Ujfalusi To: Mark Brown , Liam Girdwood , Tony Lindgren , Samuel Ortiz , Dmitry Torokhov , 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 v4 06/14] dt: Add empty of_find_node_by_name() function Date: Mon, 10 Sep 2012 13:46:24 +0300 Message-Id: <1347273992-9107-7-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1347273992-9107-1-git-send-email-peter.ujfalusi@ti.com> References: <1347273992-9107-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQkMKGbNeoiYLKmjww8uSiWB1/xWXAoGEXKZAKHeukZqHMDYbKQpQz827YzKQRi84Jq1cN2y 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 file changed, 6 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 1b11632..5c7a158 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -315,6 +315,12 @@ static inline const char* of_node_full_name(struct device_node *np) return ""; } +static inline struct 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;