From patchwork Thu Mar 2 15:40:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9600513 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 7BA4D60453 for ; Thu, 2 Mar 2017 15:40:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C5C8285A9 for ; Thu, 2 Mar 2017 15:40:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60312285AF; Thu, 2 Mar 2017 15:40:27 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID 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 08AE5285A9 for ; Thu, 2 Mar 2017 15:40:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CBA676EBAC; Thu, 2 Mar 2017 15:40:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22d.google.com (mail-wm0-x22d.google.com [IPv6:2a00:1450:400c:c09::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id A59696EBA9 for ; Thu, 2 Mar 2017 15:40:20 +0000 (UTC) Received: by mail-wm0-x22d.google.com with SMTP id t193so15203328wmt.1 for ; Thu, 02 Mar 2017 07:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=J1JX2KQV042FXiHpxYaqnA7injydpFFWmcttZlbiyfY=; b=WcxgoBroAjYbMwBlBjTfjSD/A5phTa/bvT1YszQkdOF54DnQzkQFPH3ccUNFdylylm S6mXRz2klbGyo/7Vgi3S8K1gm3BSrbcT0FJDNx3Zv5Xvc+zg3r7Ytf4Ze+0i3toqVjDg xpNqw6AAR4mOu5hSiCqvJETaM+vKZFxVgdwCXfa9vccVkyKylZSAO9YWCowd2xj0vhyl xZdlMkap+KYYuV86CBB5zGw0q6t7LXidV+AWxJmwHUhgcAP48QWkg2hyzLnuSNR9AFwm HtIWeQ6h6RvMv/oQjMvpDzO+eQQt6J8X8hdD+hT1ag2U8kOsLwurLH24Cv/hSlPAd98L jXPg== 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=J1JX2KQV042FXiHpxYaqnA7injydpFFWmcttZlbiyfY=; b=Yj//KoTUL34db64Is2a1xQrsFwGHXSujj2WB1AA5V+rLXBFRWnvbi8YDop3H7fDgvS s5GrWQ2q8DTiwghSpv2YS1d4RL1VfGLGNVKf+r2VXKY9JHNUzMi0uwesXgL/rCR8iWEv tN/ZPeNnQrxfXktzvD5B9BtXCiWJI7VeJwE+PCtpkNG98cm0zwkP2eH0PI39CoVdeMJm lErIs/k/c7Xl88olF1HfPGrcFFbN+YIX434EtTAFHbAww7eJ7JNfFaD78BUM7YEtW2K9 mM6OgeF4y16c2ZNAbY+xMTNXrCTToHI7UDPug7MAOSfgOyKOWCwgcLhoX99ufuHtWZd1 kIxg== X-Gm-Message-State: AMke39mI3IYwSjI59o77tdTXsaFNV4vGZ/AQUGRQK1YfCbEb4m2UeNdHIm20evTgxfMYyq5y X-Received: by 10.28.86.214 with SMTP id k205mr8143528wmb.26.1488469219282; Thu, 02 Mar 2017 07:40:19 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id m201sm11717389wmd.19.2017.03.02.07.40.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Mar 2017 07:40:18 -0800 (PST) From: Neil Armstrong To: airlied@linux.ie Subject: [PATCH 04/11] drm/meson: venc_cvbs: no more return -ENODEV if CVBS is not available Date: Thu, 2 Mar 2017 16:40:00 +0100 Message-Id: <1488469207-523-5-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1488469207-523-1-git-send-email-narmstrong@baylibre.com> References: <1488469207-523-1-git-send-email-narmstrong@baylibre.com> Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Neil Armstrong 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 Since this is managed now by the components code, if CVBS is not available and HDMI neither, the drm driver won't bind anyway. Signed-off-by: Neil Armstrong --- drivers/gpu/drm/meson/meson_venc_cvbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/meson/meson_venc_cvbs.c b/drivers/gpu/drm/meson/meson_venc_cvbs.c index a2bcc70..a96fcb4 100644 --- a/drivers/gpu/drm/meson/meson_venc_cvbs.c +++ b/drivers/gpu/drm/meson/meson_venc_cvbs.c @@ -248,7 +248,7 @@ int meson_venc_cvbs_create(struct meson_drm *priv) if (!meson_venc_cvbs_connector_is_available(priv)) { dev_info(drm->dev, "CVBS Output connector not available\n"); - return -ENODEV; + return 0; } meson_venc_cvbs = devm_kzalloc(priv->dev, sizeof(*meson_venc_cvbs),