]> Git Repo - linux.git/commitdiff
drm: radeon: fix error value sign
authorVasiliy Kulikov <[email protected]>
Sun, 14 Nov 2010 20:08:27 +0000 (23:08 +0300)
committerDave Airlie <[email protected]>
Thu, 18 Nov 2010 04:55:46 +0000 (14:55 +1000)
enable_vblank implementations should use negative result to indicate error.
radeon_enable_vblank() returns EINVAL in this case.  Change this to -EINVAL.

Signed-off-by: Vasiliy Kulikov <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
drivers/gpu/drm/radeon/radeon_irq.c

index 2f349a300195992c9450c9ddd1d6e091eed23ef8..465746bd51b76e4b88cbb1812f7729be430a6da7 100644 (file)
@@ -76,7 +76,7 @@ int radeon_enable_vblank(struct drm_device *dev, int crtc)
                default:
                        DRM_ERROR("tried to enable vblank on non-existent crtc %d\n",
                                  crtc);
-                       return EINVAL;
+                       return -EINVAL;
                }
        } else {
                switch (crtc) {
@@ -89,7 +89,7 @@ int radeon_enable_vblank(struct drm_device *dev, int crtc)
                default:
                        DRM_ERROR("tried to enable vblank on non-existent crtc %d\n",
                                  crtc);
-                       return EINVAL;
+                       return -EINVAL;
                }
        }
 
This page took 0.053386 seconds and 4 git commands to generate.