diff options
author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-02-22 13:24:32 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-02-22 13:26:23 -0500 |
commit | 5a893fc28f0393adb7c885a871b8c59e623fd528 (patch) | |
tree | 8d119f02b7d0ba7e60f0f554fa5000c2cce2fb87 /drivers/gpu/drm/nouveau/nouveau_mem.c | |
parent | e0138c26cdeee8c033256ccd9e07d66db3c998be (diff) |
ttm: Include the 'struct dev' when using the DMA API.
This makes the accounting when using 'debug_dma_dump_mappings()'
and CONFIG_DMA_API_DEBUG=y be assigned to the correct device
instead of 'fallback'.
No functional change - just cosmetic.
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_mem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_mem.c b/drivers/gpu/drm/nouveau/nouveau_mem.c index a163c7c612e7..931b22142ed2 100644 --- a/drivers/gpu/drm/nouveau/nouveau_mem.c +++ b/drivers/gpu/drm/nouveau/nouveau_mem.c | |||
@@ -559,6 +559,7 @@ nouveau_mem_vram_init(struct drm_device *dev) | |||
559 | if (ret) | 559 | if (ret) |
560 | return ret; | 560 | return ret; |
561 | 561 | ||
562 | dev_priv->ttm.bdev.dev = dev->dev; | ||
562 | ret = ttm_bo_device_init(&dev_priv->ttm.bdev, | 563 | ret = ttm_bo_device_init(&dev_priv->ttm.bdev, |
563 | dev_priv->ttm.bo_global_ref.ref.object, | 564 | dev_priv->ttm.bo_global_ref.ref.object, |
564 | &nouveau_bo_driver, DRM_FILE_PAGE_OFFSET, | 565 | &nouveau_bo_driver, DRM_FILE_PAGE_OFFSET, |