drm/omap: DVI connector fix
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 14 May 2013 11:14:15 +0000 (14:14 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 17 Jun 2013 11:00:58 +0000 (14:00 +0300)
The omapdrm driver currently uses a string comparison to find out if the
display is a DVI display. This is not reliable, and as we now have a
specific display type for DVI, let's use that.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_drv.c

index 2c2316a59b6c780f9840e234dd5b7703cf9c43ab..a3004f12b9a3657173d9aa6e56af3f1c6330bc14 100644 (file)
@@ -65,10 +65,8 @@ static int get_connector_type(struct omap_dss_device *dssdev)
        switch (dssdev->type) {
        case OMAP_DISPLAY_TYPE_HDMI:
                return DRM_MODE_CONNECTOR_HDMIA;
-       case OMAP_DISPLAY_TYPE_DPI:
-               if (!strcmp(dssdev->name, "dvi"))
-                       return DRM_MODE_CONNECTOR_DVID;
-               /* fallthrough */
+       case OMAP_DISPLAY_TYPE_DVI:
+               return DRM_MODE_CONNECTOR_DVID;
        default:
                return DRM_MODE_CONNECTOR_Unknown;
        }