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_fb.c | |
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_fb.c')
-rw-r--r-- | drivers/gpu/drm/armada/armada_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/armada/armada_fb.c b/drivers/gpu/drm/armada/armada_fb.c index 2a7eb6817c36..92e6b08ea64a 100644 --- a/drivers/gpu/drm/armada/armada_fb.c +++ b/drivers/gpu/drm/armada/armada_fb.c @@ -133,7 +133,7 @@ static struct drm_framebuffer *armada_fb_create(struct drm_device *dev, } /* Framebuffer objects must have a valid device address for scanout */ - if (obj->dev_addr == DMA_ERROR_CODE) { + if (!obj->mapped) { ret = -EINVAL; goto err_unref; } |