summaryrefslogtreecommitdiff
path: root/shared-core/mga_drv.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared-core/mga_drv.h')
-rw-r--r--shared-core/mga_drv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/mga_drv.h b/shared-core/mga_drv.h
index 10096a95..2da31194 100644
--- a/shared-core/mga_drv.h
+++ b/shared-core/mga_drv.h
@@ -245,7 +245,7 @@ do { \
dev_priv->prim.high_mark ) { \
if ( MGA_DMA_DEBUG ) \
DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \
- return DRM_ERR(EBUSY); \
+ return -EBUSY; \
} \
} \
} while (0)
@@ -256,7 +256,7 @@ do { \
if ( mga_do_wait_for_idle( dev_priv ) < 0 ) { \
if ( MGA_DMA_DEBUG ) \
DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \
- return DRM_ERR(EBUSY); \
+ return -EBUSY; \
} \
mga_do_dma_wrap_end( dev_priv ); \
} \