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) | |
download | talos-obmc-linux-5a893fc28f0393adb7c885a871b8c59e623fd528.tar.gz talos-obmc-linux-5a893fc28f0393adb7c885a871b8c59e623fd528.zip |
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) if (ret) return ret; + dev_priv->ttm.bdev.dev = dev->dev; ret = ttm_bo_device_init(&dev_priv->ttm.bdev, dev_priv->ttm.bo_global_ref.ref.object, &nouveau_bo_driver, DRM_FILE_PAGE_OFFSET, |