]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: don't use DMA_ERROR_CODE
authorChristoph Hellwig <hch@lst.de>
Mon, 22 May 2017 08:40:52 +0000 (10:40 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 20 Jun 2017 09:12:57 +0000 (11:12 +0200)
commit319bc20005a0d2da378c2973d6145d34495b68f8
tree2ca46b813bc2455fe4826a8441a7d24df7a44c9c
parentaccdc9d805c903a484dfe4d2f41e00d7545cf8d3
drm/exynos: don't use DMA_ERROR_CODE

DMA_ERROR_CODE already isn't a valid API to user for drivers and will
go away soon.  exynos_drm_fb_dma_addr uses it a an error return when
the passed in index is invalid, but the callers never check for it
but instead pass the address straight to the hardware.

Add a WARN_ON instead and just return 0.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/gpu/drm/exynos/exynos_drm_fb.c