From: Neil Armstrong Date: Tue, 4 Apr 2017 12:15:24 +0000 (+0200) Subject: drm/meson: venc_cvbs: no more return -ENODEV if CVBS is not available X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cb110b665e77ebf99f8235f257b88eea007186d3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/meson: venc_cvbs: no more return -ENODEV if CVBS is not available 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 --- diff --git a/drivers/gpu/drm/meson/meson_venc_cvbs.c b/drivers/gpu/drm/meson/meson_venc_cvbs.c index a2bcc70a03ef..a96fcb40f2c7 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),