drm/meson: venc_cvbs: no more return -ENODEV if CVBS is not available
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 4 Apr 2017 12:15:24 +0000 (14:15 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 4 Apr 2017 15:49:31 +0000 (17:49 +0200)
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 <daniel.vetter@ffwll.ch>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/gpu/drm/meson/meson_venc_cvbs.c

index a2bcc70a03efaaac6ee32058f747e57161222b23..a96fcb40f2c7d6b59c25d1d89711c38db7b45288 100644 (file)
@@ -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),