summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>2006-09-07 00:35:17 +0200
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>2006-09-07 00:35:17 +0200
commitd89c623f8e739815ea952adc77cfe5c0f7204407 (patch)
treef92658e9ddec33615ec379de225e709ca3b68d45 /shared-core
parentb119966ae65c9ee74096cf0b246bf7703cb58ec4 (diff)
Remove a 64 bit div.
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/nouveau_state.c b/shared-core/nouveau_state.c
index fbe94641..707d42ef 100644
--- a/shared-core/nouveau_state.c
+++ b/shared-core/nouveau_state.c
@@ -194,7 +194,7 @@ int nouveau_dma_init(struct drm_device *dev)
dev_priv->cmdbuf_obj = nouveau_dma_object_create(dev,
cb->start - drm_get_resource_start(dev, 1),
cb->size, NV_DMA_ACCESS_RO, NV_DMA_TARGET_VIDMEM);
- dev_priv->cmdbuf_ch_size = cb->size / nouveau_fifo_number(dev);
+ dev_priv->cmdbuf_ch_size = (uint32_t)cb->size / nouveau_fifo_number(dev);
dev_priv->cmdbuf_alloc = cb;
DRM_INFO("DMA command buffer is %dKiB at 0x%08x(%s)\n",