diff options
Diffstat (limited to 'drivers/char/drm/mga_dma.c')
-rw-r--r-- | drivers/char/drm/mga_dma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/drm/mga_dma.c b/drivers/char/drm/mga_dma.c index 7899e281d062..567b425b784f 100644 --- a/drivers/char/drm/mga_dma.c +++ b/drivers/char/drm/mga_dma.c | |||
@@ -825,6 +825,7 @@ static int mga_do_init_dma( drm_device_t *dev, drm_mga_init_t *init ) | |||
825 | DRM_ERROR("failed to find primary dma region!\n"); | 825 | DRM_ERROR("failed to find primary dma region!\n"); |
826 | return DRM_ERR(EINVAL); | 826 | return DRM_ERR(EINVAL); |
827 | } | 827 | } |
828 | dev->agp_buffer_token = init->buffers_offset; | ||
828 | dev->agp_buffer_map = drm_core_findmap(dev, init->buffers_offset); | 829 | dev->agp_buffer_map = drm_core_findmap(dev, init->buffers_offset); |
829 | if (!dev->agp_buffer_map) { | 830 | if (!dev->agp_buffer_map) { |
830 | DRM_ERROR("failed to find dma buffer region!\n"); | 831 | DRM_ERROR("failed to find dma buffer region!\n"); |