diff options
author | Eric Anholt <eric@anholt.net> | 2007-08-25 05:22:43 -0400 |
---|---|---|
committer | Dave Airlie <airlied@optimus.(none)> | 2007-10-14 20:38:19 -0400 |
commit | 20caafa6ecb2487d9b223aa33e7cc704f912a758 (patch) | |
tree | 7df033fdee81305dad0a67ceba79f51ead7c1b8b /drivers/char/drm/mga_drv.h | |
parent | 23fd50450a34f2558070ceabb0bfebc1c9604af5 (diff) |
drm: Remove DRM_ERR OS macro.
This was used to make all ioctl handlers return -errno on linux and errno on
*BSD. Instead, just return -errno in shared code, and flip sign on return f
shared code to *BSD code.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/mga_drv.h')
-rw-r--r-- | drivers/char/drm/mga_drv.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/mga_drv.h b/drivers/char/drm/mga_drv.h index 49253affa475..7bf59113fca6 100644 --- a/drivers/char/drm/mga_drv.h +++ b/drivers/char/drm/mga_drv.h | |||
@@ -245,7 +245,7 @@ do { \ | |||
245 | dev_priv->prim.high_mark ) { \ | 245 | dev_priv->prim.high_mark ) { \ |
246 | if ( MGA_DMA_DEBUG ) \ | 246 | if ( MGA_DMA_DEBUG ) \ |
247 | DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \ | 247 | DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \ |
248 | return DRM_ERR(EBUSY); \ | 248 | return -EBUSY; \ |
249 | } \ | 249 | } \ |
250 | } \ | 250 | } \ |
251 | } while (0) | 251 | } while (0) |
@@ -256,7 +256,7 @@ do { \ | |||
256 | if ( mga_do_wait_for_idle( dev_priv ) < 0 ) { \ | 256 | if ( mga_do_wait_for_idle( dev_priv ) < 0 ) { \ |
257 | if ( MGA_DMA_DEBUG ) \ | 257 | if ( MGA_DMA_DEBUG ) \ |
258 | DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \ | 258 | DRM_INFO( "%s: wrap...\n", __FUNCTION__ ); \ |
259 | return DRM_ERR(EBUSY); \ | 259 | return -EBUSY; \ |
260 | } \ | 260 | } \ |
261 | mga_do_dma_wrap_end( dev_priv ); \ | 261 | mga_do_dma_wrap_end( dev_priv ); \ |
262 | } \ | 262 | } \ |