From patchwork Tue Apr 4 12:15:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9661477 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 C63AA60352 for ; Tue, 4 Apr 2017 12:15:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA3C227CF3 for ; Tue, 4 Apr 2017 12:15:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AEF4728504; Tue, 4 Apr 2017 12:15:54 +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 7567D27CF3 for ; Tue, 4 Apr 2017 12:15:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C13BF6E5AA; Tue, 4 Apr 2017 12:15:49 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1B8266E59E for ; Tue, 4 Apr 2017 12:15:47 +0000 (UTC) Received: by mail-wr0-x22d.google.com with SMTP id w43so211571893wrb.0 for ; Tue, 04 Apr 2017 05:15:47 -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=eBr0qPuOWzTNM/VW2AfLxRBk+Ykx5oNedwcbuHFRLwk=; b=L5smc40GTKHeJouVfgCbxonD5rcAOvA22uO8brNQEHLx99+KPJPUY7/TcjifA7rn7R waurM5Xw08VMnbLHGNpPLK/2CyS/fw4BbMTMbSxABAleznbTrqnM0N2pT8IDTj+evnGS gYzEe2usb++27vn4MGj4K6osZpBVahDdLucQLvggknz56ZwmoPlsFZ4+8zdAI0mOA4AS dShZpviUhjCfl/qycfdUfUBr4qeWNHcuVzHIWeYBiOroDw03QwTEUEMTcf4xKATJRAM9 NSKDbPOwntdqnHyByVc38/0vgNLz7YSPgNxkvi5SLfahKUhVN2AD5IbVHCj5q29UcqeN exyw== 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=eBr0qPuOWzTNM/VW2AfLxRBk+Ykx5oNedwcbuHFRLwk=; b=sYokcwyZIWLXd/vdCdFmcHRJ0wF1H23iQsrUM8urS+vYQswCgC49OhEUYdI/wAMcXU lwQ1fzX6905ER15y1PWQpyjAa24wFfUJOH6URbOhw+5SY4uoBYdLo7388eYJAG6U47c4 +eauNR1LAAHWtldh3Z7sSKTxv41ydEiPXu3ITuRWm6C4HNgtMwiQzC3uODgYuT7IF8jX QGMyy0Q7Of6tkxTSl0IfUmnw8oERgEpW5IKVrMofqdzBGEsBjjFdcZcT+9o5Qd0mCoiU Sb/ibLMNpfSk0lOTAHTYV4lXNah4UD3ciH1woiguKc4TyOp6MZ9rhVKrcaqetSAbXHf1 gXkA== X-Gm-Message-State: AFeK/H1F21umFgiurA2nu7cQJ4GT24KmFmS5X7rGfdOJQ5M9ysJZHfESkSyArBGW1SKvnbKl X-Received: by 10.223.139.30 with SMTP id n30mr20855128wra.86.1491308144821; Tue, 04 Apr 2017 05:15:44 -0700 (PDT) Received: from zoidberg.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id a66sm250242wrc.58.2017.04.04.05.15.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Apr 2017 05:15:44 -0700 (PDT) From: Neil Armstrong To: airlied@linux.ie Subject: [PATCH v3 04/11] drm/meson: venc_cvbs: no more return -ENODEV if CVBS is not available Date: Tue, 4 Apr 2017 14:15:24 +0200 Message-Id: <1491308131-22071-5-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491308131-22071-1-git-send-email-narmstrong@baylibre.com> References: <1491308131-22071-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. Acked-by: Daniel Vetter 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),