diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-22 11:46:22 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-06-20 12:12:58 +0300 |
commit | b400585720820077704c84813930a3e255f87a23 (patch) | |
tree | 00df9e6dd202c11182dd76d4745c98138562e82f /drivers/gpu/drm/armada/armada_gem.h | |
parent | e0c7a510aea75db4927d810fb0a84233641b53c3 (diff) | |
download | linux-b400585720820077704c84813930a3e255f87a23.tar.xz |
drm/armada: don't abuse DMA_ERROR_CODE
dev_addr isn't even a dma_addr_t, and DMA_ERROR_CODE has never been
a valid driver API. Add a bool mapped flag instead.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/gpu/drm/armada/armada_gem.h')
-rw-r--r-- | drivers/gpu/drm/armada/armada_gem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/armada/armada_gem.h b/drivers/gpu/drm/armada/armada_gem.h index b88d2b9853c7..6e524e0676bb 100644 --- a/drivers/gpu/drm/armada/armada_gem.h +++ b/drivers/gpu/drm/armada/armada_gem.h @@ -16,6 +16,7 @@ struct armada_gem_object { void *addr; phys_addr_t phys_addr; resource_size_t dev_addr; + bool mapped; struct drm_mm_node *linear; /* for linear backed */ struct page *page; /* for page backed */ struct sg_table *sgt; /* for imported */ |