From patchwork Tue Mar 21 15:25:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9636853 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 73703602D6 for ; Tue, 21 Mar 2017 15:26:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6968C2833B for ; Tue, 21 Mar 2017 15:26:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E4CA28418; Tue, 21 Mar 2017 15:26:04 +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 235AF2833B for ; Tue, 21 Mar 2017 15:26:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC98B6E727; Tue, 21 Mar 2017 15:26:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) by gabe.freedesktop.org (Postfix) with ESMTPS id A725E6E719 for ; Tue, 21 Mar 2017 15:26:00 +0000 (UTC) Received: by mail-wm0-x22a.google.com with SMTP id n11so15202729wma.0 for ; Tue, 21 Mar 2017 08:26:00 -0700 (PDT) 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=iFnFWOf5Swg+kU8gGa2lYEWW+WrY9Bb1/ipREZjP5IM4kJ8k50vKaL59d/H/Bki3/K /zC8WS9/gqqjciw7ju5ygWQDRkU56lMXZmAxzpoGYmzRyQNXH3/V69b7qrD2WYwYS/4L b7C/zMwbEDYldopRrlU3PGmC3QycHR6zran4NJzox6EXQP1hnKGf6LxZiqOylPIjDDVJ BqDkZufB0ercd+NBlNyCmAuE6/WBlxC5AdSQ74HEzkc0pnkAHPSL20VAcsuoNDKphHWt LT9afVBXmfAP7XH082fLMbPOkEHgxBigwLwkHPQx5YBlCNgx46q1K96SJ1+8P8fz0ceD FBpg== 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=Vsvrz/Ma2hZw0/QRbnpDFd+ZALIfinGwgxwp4w0d7EgMhH+MatA+G0qPlbOri+SgrJ QYD5zNfokRijdsvMI0ikUH99OI43OMOzgpgGTFBM6IUlf3V/BX/Ls1nPkmgmhqbznDpp 9I+pHwRQ1p3xYeqatTW3GTqV/6mNtS1jH8DwNyHQzkFx++r8Yyywx/yRaWL77UfgDAYK jnSxQBU02pFae+358m019ykiLaI4cM6S7UadRSFWyyKLxcPob3GRtGyttHMq7uevqPGh UtZP2fOmiXLgREdRRmrbcO7Oxcvg0WFUnrvBCnTZQ3AGxHCkMdySjrR9ACmgDQ9Fypuh suBA== X-Gm-Message-State: AFeK/H14VoXwjIVyABePd1CciqiBZtvzp3mhObBwMrn0iv7WE8o8ch+Cg0ygj6sYeg3grIbX X-Received: by 10.28.29.88 with SMTP id d85mr3229212wmd.56.1490109959198; Tue, 21 Mar 2017 08:25:59 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id b13sm18088890wmf.6.2017.03.21.08.25.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 08:25:58 -0700 (PDT) From: Neil Armstrong To: airlied@linux.ie Subject: [PATCH v2 04/13] drm/meson: venc_cvbs: no more return -ENODEV if CVBS is not available Date: Tue, 21 Mar 2017 16:25:41 +0100 Message-Id: <1490109950-21421-5-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490109950-21421-1-git-send-email-narmstrong@baylibre.com> References: <1490109950-21421-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),