drm: radeon: fix error value sign

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 <segoon@openwall.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Vasiliy Kulikov and committed by
Dave Airlie
21e2eae4 16790569

+2 -2
+2 -2
drivers/gpu/drm/radeon/radeon_irq.c
··· 76 76 default: 77 77 DRM_ERROR("tried to enable vblank on non-existent crtc %d\n", 78 78 crtc); 79 - return EINVAL; 79 + return -EINVAL; 80 80 } 81 81 } else { 82 82 switch (crtc) { ··· 89 89 default: 90 90 DRM_ERROR("tried to enable vblank on non-existent crtc %d\n", 91 91 crtc); 92 - return EINVAL; 92 + return -EINVAL; 93 93 } 94 94 } 95 95