From patchwork Thu Sep 6 12:12:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 1413791 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 5CA2ADFFCF for ; Thu, 6 Sep 2012 12:15:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753564Ab2IFMM3 (ORCPT ); Thu, 6 Sep 2012 08:12:29 -0400 Received: from na3sys009aog123.obsmtp.com ([74.125.149.149]:44550 "EHLO na3sys009aog123.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753422Ab2IFMMZ (ORCPT ); Thu, 6 Sep 2012 08:12:25 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]) (using TLSv1) by na3sys009aob123.postini.com ([74.125.148.12]) with SMTP ID DSNKUEiTKNzcdJyXLmJxTMELlpCpqHLLlzG5@postini.com; Thu, 06 Sep 2012 05:12:24 PDT Received: by obbuo13 with SMTP id uo13so2296846obb.19 for ; Thu, 06 Sep 2012 05:12:23 -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=bI++yCsR6w6+Rvq0VKyW6Qej8sUiWZPcDl/F3TVhG4Of+3dlcIQB5tolX3J+ro2+Vq YboGpYZgC9NhDfrbNnOyN/2plFUdRpo6/1hPfU42bskuO/gXeW96wQ/ygjzk0jzZjIMu mfMpesMiwrk2f59pbfpHBtEkQZvonmwYEeou1sn7A2GaYi1x/wUki13bMIamZ5lBRak5 GRztbAeHTTbrmBs+0luU0sJ1ISR3wDV4nbMgg8+HjqfsF9Ne+9kC2gjC3vz/Goi9GqLs zOa80A+uAGfxczBRF127Vnm8XAO/1Iu1fZrMIeMgzPSX9GzCB1HuiMtOMto2hCnpDwjz GY1w== Received: by 10.60.19.67 with SMTP id c3mr1684199oee.106.1346933543654; Thu, 06 Sep 2012 05:12:23 -0700 (PDT) Received: from barack.emea.dhcp.ti.com (dragon.ti.com. [192.94.94.33]) by mx.google.com with ESMTPS id zn9sm1795856obb.23.2012.09.06.05.12.20 (version=SSLv3 cipher=OTHER); Thu, 06 Sep 2012 05:12:23 -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 v3 06/14] dt: Add empty of_find_node_by_name() function Date: Thu, 6 Sep 2012 15:12:13 +0300 Message-Id: <1346933541-21547-7-git-send-email-peter.ujfalusi@ti.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1346933541-21547-1-git-send-email-peter.ujfalusi@ti.com> References: <1346933541-21547-1-git-send-email-peter.ujfalusi@ti.com> X-Gm-Message-State: ALoCoQnQ9ztFLcmkLPLX8hKE01czNoRRzCGDUNdBKZct4agG8Tq6Ej5oI9C8SVZRpKgR0FBVNs9e 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;