Commit 806d4343 authored by David S. Miller's avatar David S. Miller

[DRM]: Fix warnings and build errors introduced by previous changes to drm_drv.h

parent 42382f86
...@@ -545,9 +545,7 @@ static int __init drm_init( void ) ...@@ -545,9 +545,7 @@ static int __init drm_init( void )
drm_device_t *dev; drm_device_t *dev;
int i; int i;
#if __HAVE_CTX_BITMAP
int retcode; int retcode;
#endif
DRM_DEBUG( "\n" ); DRM_DEBUG( "\n" );
#ifdef MODULE #ifdef MODULE
...@@ -626,9 +624,11 @@ static int __init drm_init( void ) ...@@ -626,9 +624,11 @@ static int __init drm_init( void )
return 0; return 0;
#if (__REALLY_HAVE_AGP && __MUST_HAVE_AGP) || __HAVE_CTX_BITMAP
fail: fail:
DRM(stub_unregister)(DRM(minor)[i]); DRM(stub_unregister)(DRM(minor)[i]);
DRM(takedown)( dev ); DRM(takedown)( dev );
#endif
fail_reg: fail_reg:
kfree (DRM(device)); kfree (DRM(device));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment