From patchwork Thu Sep 27 14:07:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1514581 Return-Path: X-Original-To: patchwork-linux-sh@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 972083FC71 for ; Thu, 27 Sep 2012 14:39:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752082Ab2I0Oja (ORCPT ); Thu, 27 Sep 2012 10:39:30 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:61731 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975Ab2I0Oja (ORCPT ); Thu, 27 Sep 2012 10:39:30 -0400 Received: from axis700.grange (dslb-178-001-228-192.pools.arcor-ip.net [178.1.228.192]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MfE8E-1T6hBT119m-00Om92; Thu, 27 Sep 2012 16:09:18 +0200 Received: from 6a.grange (6a.grange [192.168.1.11]) by axis700.grange (Postfix) with ESMTPS id 53C33189F9C; Thu, 27 Sep 2012 16:07:35 +0200 (CEST) Received: from lyakh by 6a.grange with local (Exim 4.72) (envelope-from ) id 1THEkY-0007S7-2S; Thu, 27 Sep 2012 16:07:34 +0200 From: Guennadi Liakhovetski To: linux-media@vger.kernel.org Cc: devicetree-discuss@lists.ozlabs.org, Sylwester Nawrocki , Laurent Pinchart , Hans Verkuil , Magnus Damm , linux-sh@vger.kernel.org, Mark Brown , Stephen Warren , Arnd Bergmann , Grant Likely Subject: [PATCH 02/14] of: add a dummy inline function for when CONFIG_OF is not defined Date: Thu, 27 Sep 2012 16:07:21 +0200 Message-Id: <1348754853-28619-3-git-send-email-g.liakhovetski@gmx.de> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1348754853-28619-1-git-send-email-g.liakhovetski@gmx.de> References: <1348754853-28619-1-git-send-email-g.liakhovetski@gmx.de> X-Provags-ID: V02:K0:8ur9NfA9xfFx5m6p8AdgP1yILGpUgBzRp/FTaZ+qOgM t5SautpQxRmwCD0cRlc/mrJe/0kPSi6bGboDWIxB5x5FQ3tndX ucedo18r9b7mSazxXM5m6c4nAa4j3aq3FlVYUgRDeGHm3S8q3E wXr6RchcX8zzoR9Qh6xmwQ0ipaN78eQ/apsavolUE3ll7YydQj HTz6gwLPKqb2sKWROCV1x1w4Ogc+v0L3Sn0gF5CDon/HZ+RtS9 uP6FGggutmcdBv4yaDfA01eafzXotg13jkWwYvUuvxUWHo5ssI M2cgUNRfrbadaeL1la+MgDlVavoq8dE8HFNWyMyHSQng0pSnbp zmlYKBY7uuCGK5FG3ONwnsFwYrRF/fiX7BEZ9BGcYciAZWgx6V CXffhwGQKRezg== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org If CONFIG_OF isn't defined, no declaration of of_get_parent will be found and compilation can fail. This patch adds a dummy inline function definition to fix the problem. Signed-off-by: Guennadi Liakhovetski --- include/linux/of.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/linux/of.h b/include/linux/of.h index 1b11632..54866e6 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -412,6 +412,11 @@ static inline int of_parse_phandle_with_args(struct device_node *np, return -ENOSYS; } +static inline struct device_node *of_get_parent(const struct device_node *np) +{ + return NULL; +} + static inline int of_alias_get_id(struct device_node *np, const char *stem) { return -ENOSYS;