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: 9565851 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 87C4E601E9 for ; Fri, 10 Feb 2017 01:43:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 785822853F for ; Fri, 10 Feb 2017 01:43:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6B53928542; Fri, 10 Feb 2017 01:43:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 087B92853F for ; Fri, 10 Feb 2017 01:43:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A3D516EBDC; Fri, 10 Feb 2017 01:41:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f65.google.com (mail-oi0-f65.google.com [209.85.218.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id BEEE86EB8D for ; Thu, 9 Feb 2017 19:06:05 +0000 (UTC) Received: by mail-oi0-f65.google.com with SMTP id u143so945448oif.3 for ; Thu, 09 Feb 2017 11:06:05 -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=WevWcczlUYYFbrmcPTV0yYugw0jnL5jQK/J9xvdaCeX24kLwW2CAb/F1BjUD85RlMk VuenMYvlKgUKPRTQjcZDi756xey2Qw+S5g5heHSyhp30h/5cSu2yoQnbduXQPz4mu2RH JDj287w7spf12DNZAN77J2JbDH2w44idNST2bbMRdtRBc7rZ6fUNCVpqYbgGCJkzv+r5 2pBDHayIJFa0JygCVqou8+4BKYvPnxe3uJ9KmSWac8p+pgc063lYyfzruGD7iVkHV/MC si3tDlzPVxKrPRpdHdUfSy3fziPioSza49ttT+iKXG+nYT5IXz7zhByy7/1+D6KxEuIO I8Ww== X-Gm-Message-State: AMke39lz879viFYJfyX34ZGoldjjqJYdiRWkU3/KIdZITLIuMt0+KLPiV7sFizI4mpIYsw== 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 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> X-Mailman-Approved-At: Fri, 10 Feb 2017 01:41:18 +0000 Cc: Neil Armstrong , Liviu Dudau , dri-devel@lists.freedesktop.org, Tomi Valkeinen , Frank Rowand , Marek Vasut , Kevin Hilman , Chen-Yu Tsai , Krzysztof Kozlowski , Xinliang Liu , Javier Martinez Canillas , Xinwei Kong , Kukjin Kim , Mali DP Maintainers , devicetree@vger.kernel.org, Chen Feng , Jyri Sarha , Carlo Caione , Russell King , Matthias Brugger , Alison Wang , Jingoo Han , Seung-Woo Kim , linux-kernel@vger.kernel.org, Kyungmin Park , Rongrong Zou , Maxime Ripard X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 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)