CHROMIUM: drm/exynos: Fix compiler warning in hdmi_get_edid
authorDaniel Kurtz <djkurtz@chromium.org>
Sat, 24 Nov 2012 12:12:57 +0000 (20:12 +0800)
committerGerrit <chrome-bot@google.com>
Thu, 29 Nov 2012 11:05:47 +0000 (03:05 -0800)
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chromium-os:36607
TEST=compiles without:
  warning: return makes pointer from integer without a cast

Change-Id: I0d20f309180329f2875fcfd3259de87e56751cab
Reviewed-on: https://gerrit.chromium.org/gerrit/38887
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 8be11be..5c58b2c 100644 (file)
@@ -896,7 +896,7 @@ static struct edid *hdmi_get_edid(void *ctx, struct drm_connector *connector)
        DRM_DEBUG_KMS("[%d] %s\n", __LINE__, __func__);
 
        if (!hdata->ddc_port)
-               return -ENODEV;
+               return ERR_PTR(-ENODEV);
 
        edid = drm_get_edid(connector, hdata->ddc_port->adapter);
        if (!edid)