diff options
Diffstat (limited to 'drivers/gpu/drm/r128/r128_cce.c')
-rw-r--r-- | drivers/gpu/drm/r128/r128_cce.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/r128/r128_cce.c b/drivers/gpu/drm/r128/r128_cce.c index c31afbde62e..32de4cedc36 100644 --- a/drivers/gpu/drm/r128/r128_cce.c +++ b/drivers/gpu/drm/r128/r128_cce.c | |||
@@ -525,11 +525,12 @@ static int r128_do_init_cce(struct drm_device * dev, drm_r128_init_t * init) | |||
525 | } else | 525 | } else |
526 | #endif | 526 | #endif |
527 | { | 527 | { |
528 | dev_priv->cce_ring->handle = (void *)dev_priv->cce_ring->offset; | 528 | dev_priv->cce_ring->handle = |
529 | (void *)(unsigned long)dev_priv->cce_ring->offset; | ||
529 | dev_priv->ring_rptr->handle = | 530 | dev_priv->ring_rptr->handle = |
530 | (void *)dev_priv->ring_rptr->offset; | 531 | (void *)(unsigned long)dev_priv->ring_rptr->offset; |
531 | dev->agp_buffer_map->handle = | 532 | dev->agp_buffer_map->handle = |
532 | (void *)dev->agp_buffer_map->offset; | 533 | (void *)(unsigned long)dev->agp_buffer_map->offset; |
533 | } | 534 | } |
534 | 535 | ||
535 | #if __OS_HAS_AGP | 536 | #if __OS_HAS_AGP |