summaryrefslogtreecommitdiff
path: root/shared/mach64_dma.c
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-05-11 04:23:02 +0000
committerEric Anholt <anholt@freebsd.org>2004-05-11 04:23:02 +0000
commit485b259b4492ed6b7abdf063d1d5cefe01d3a3b0 (patch)
tree6ec0a5ee4844dda35c70f9bfd44d7a146269b477 /shared/mach64_dma.c
parenta1160ba2793b6c17a8aeb31b0d4cc17f3439cf9a (diff)
Add missing DRM_ERR()s.
Diffstat (limited to 'shared/mach64_dma.c')
-rw-r--r--shared/mach64_dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/mach64_dma.c b/shared/mach64_dma.c
index 1bbffc35..60663422 100644
--- a/shared/mach64_dma.c
+++ b/shared/mach64_dma.c
@@ -680,7 +680,7 @@ static int mach64_do_dma_init( drm_device_t *dev, drm_mach64_init_t *init )
DRM_ERROR( "can not find ring map!\n" );
dev->dev_private = (void *)dev_priv;
mach64_do_cleanup_dma(dev);
- return -EINVAL;
+ return DRM_ERR(EINVAL);
}
DRM_IOREMAP( dev_priv->ring_map, dev );
if ( !dev_priv->ring_map->handle ) {
@@ -688,7 +688,7 @@ static int mach64_do_dma_init( drm_device_t *dev, drm_mach64_init_t *init )
" descriptor ring\n" );
dev->dev_private = (void *) dev_priv;
mach64_do_cleanup_dma( dev );
- return -ENOMEM;
+ return DRM_ERR(ENOMEM);
}
DRM_FIND_MAP( dev_priv->buffers, init->buffers_offset );
if ( !dev_priv->buffers ) {