From patchwork Wed Apr 16 06:49:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 3998561 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 969919F2BA for ; Wed, 16 Apr 2014 06:49:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D6ED42026C for ; Wed, 16 Apr 2014 06:49:57 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id BFA002021A for ; Wed, 16 Apr 2014 06:49:56 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 23054261736; Wed, 16 Apr 2014 08:49:55 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 8E6862616E9; Wed, 16 Apr 2014 08:49:46 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 931E1261703; Wed, 16 Apr 2014 08:49:45 +0200 (CEST) Received: from smtp1.mail.ru (smtp1.mail.ru [94.100.176.129]) by alsa0.perex.cz (Postfix) with ESMTP id 8001A2616B4 for ; Wed, 16 Apr 2014 08:49:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=oQ1ZCGoI/Xfnc6YpVePqN1vAVtZu+au486Zh8CG79fs=; b=HHRDZnMoQLv1AYgUCOka8dHl+IONIN6xsbBl4GEzylxT9MvRTMGBkRXp59h29HO5ku/j+xYB5x/Lj1hQcdCOlO66o7R0ol6o4A9ri501K6VnZzU2aF/SRyAeKlxdZBbWK4M7Ddo0RPtogMT4E2MkOV+hRG8Y+GfFl2SakDqNnxY=; Received: from [5.18.98.0] (port=54918 helo=shc.zet) by smtp1.mail.ru with esmtpa (envelope-from ) id 1WaJf6-0006lR-JB; Wed, 16 Apr 2014 10:49:36 +0400 From: Alexander Shiyan To: alsa-devel@alsa-project.org Date: Wed, 16 Apr 2014 10:49:20 +0400 Message-Id: <1397630960-26677-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.3.2 X-Spam: Not detected X-Mras: Ok Cc: Stephen Rothwell , Alexander Shiyan , Liam Girdwood , Takashi Iwai , Timur Tabi , Rob Herring , Mark Brown , Grant Likely Subject: [alsa-devel] [PATCH] of: add empty of_find_node_by_path() for !OF X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Add an empty version of of_find_node_by_path(). This fixes following build error for asoc tree: sound/soc/fsl/fsl_ssi.c: In function 'fsl_ssi_probe': sound/soc/fsl/fsl_ssi.c:1471:2: error: implicit declaration of function 'of_find_node_by_path' [-Werror=implicit-function-declaration] sprop = of_get_property(of_find_node_by_path("/"), "compatible", NULL); Reported-by: Stephen Rothwell Signed-off-by: Alexander Shiyan --- include/linux/of.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/of.h b/include/linux/of.h index 919bf21..3bad8d1 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -374,6 +374,11 @@ static inline struct device_node *of_find_matching_node_and_match( return NULL; } +static inline struct device_node *of_find_node_by_path(const char *path) +{ + return NULL; +} + static inline struct device_node *of_get_parent(const struct device_node *node) { return NULL;