From patchwork Thu Feb 9 19:05:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 93771 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp151140qgi; Thu, 9 Feb 2017 11:06:26 -0800 (PST) X-Received: by 10.98.100.69 with SMTP id y66mr5374295pfb.174.1486667186810; Thu, 09 Feb 2017 11:06:26 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u26si10848146pfk.216.2017.02.09.11.06.26; Thu, 09 Feb 2017 11:06:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754396AbdBITGZ (ORCPT + 7 others); Thu, 9 Feb 2017 14:06:25 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:34670 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754392AbdBITGU (ORCPT ); Thu, 9 Feb 2017 14:06:20 -0500 Received: by mail-oi0-f65.google.com with SMTP id w144so959711oiw.1; Thu, 09 Feb 2017 11:06:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KMtznEJHeryFGpeLMZmItsCFWlo8s6A/pEf9uQqNOAk=; b=C0RpCryYHhOGPN0djnXAWH24K80yEhHr1xCx68uwKr71pWkaDBqTQHQJmX2TLm/QlC hWhR+dw2lxHn/EZgUCAPUn/1YfINKJaxJFqFGXCGcWrBr/w+6L2IEpe51qWJWfvX7cHL 03P6OeeCtpYXOZoVMhIL/v1K1fbAkq3jDpagwtVIE9JC4q+lJ2USUl8NI+pHLhaCSX+A OJXYbbh/qTocgT10qDlMCvkI3uEgSm8l8H1wRwCuluEuSfo18EdmLUvB58+89U+OOa0x OIJv6315pn56Hop/REzUw/23Va9pIF92de4gPPrfrYhu1kk8+aMjq1ipC5gPJJUfZhq6 Etbw== X-Gm-Message-State: AMke39nzVPwuj6Av/Zm+OREw8SDphfnCp2KXzkE2q4HfPMUdGJO4ema6ovrdawHgKKqrZg== X-Received: by 10.202.241.3 with SMTP id p3mr2497875oih.86.1486667165134; Thu, 09 Feb 2017 11:06:05 -0800 (PST) Received: from rob-hp-laptop.herring.priv (66-90-148-125.dyn.grandenetworks.net. [66.90.148.125]) by smtp.googlemail.com with ESMTPSA id s11sm6316209oia.15.2017.02.09.11.06.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2017 11:06:04 -0800 (PST) From: Rob Herring To: David Airlie , Daniel Vetter , Sean Paul Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Frank Rowand , Boris Brezillon , Archit Taneja , Jingoo Han , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Kukjin Kim , Krzysztof Kozlowski , Javier Martinez Canillas , Stefan Agner , Alison Wang , Xinliang Liu , Rongrong Zou , Xinwei Kong , Chen Feng , Philipp Zabel , CK Hu , Matthias Brugger , Marek Vasut , Mark Yao , Heiko Stuebner , Maxime Ripard , Chen-Yu Tsai , Liviu Dudau , Mali DP Maintainers , Neil Armstrong , Carlo Caione , Kevin Hilman , Rob Clark , Jyri Sarha , Tomi Valkeinen , Eric Anholt , Russell King Subject: [PATCH v2 2/6] drm: make of_drm_find_panel also depend on CONFIG_DRM_PANEL Date: Thu, 9 Feb 2017 13:05:54 -0600 Message-Id: <20170209190558.4784-3-robh@kernel.org> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170209190558.4784-1-robh@kernel.org> References: <20170209190558.4784-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org For drm_of_find_panel_or_bridge() added in the next commit, an empty version of of_drm_find_panel is needed for !CONFIG_DRM_PANEL. Signed-off-by: Rob Herring --- v2: - new patch include/drm/drm_panel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.10.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/drm/drm_panel.h b/include/drm/drm_panel.h index 220d1e2b3db1..960b5fd5ed18 100644 --- a/include/drm/drm_panel.h +++ b/include/drm/drm_panel.h @@ -192,7 +192,7 @@ void drm_panel_remove(struct drm_panel *panel); int drm_panel_attach(struct drm_panel *panel, struct drm_connector *connector); int drm_panel_detach(struct drm_panel *panel); -#ifdef CONFIG_OF +#if defined(CONFIG_OF) && defined(CONFIG_DRM_PANEL) struct drm_panel *of_drm_find_panel(struct device_node *np); #else static inline struct drm_panel *of_drm_find_panel(struct device_node *np)