OSDN Git Service

Remove a 64 bit div.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Wed, 6 Sep 2006 22:35:17 +0000 (00:35 +0200)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Wed, 6 Sep 2006 22:35:17 +0000 (00:35 +0200)
shared-core/nouveau_state.c

index fbe9464..707d42e 100644 (file)
@@ -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",