OSDN Git Service

media: ipu3-cio2: Use dma_zalloc_coherent to replace dma_alloc_coherent + memset
authorzhong jiang <zhongjiang@huawei.com>
Sat, 18 Aug 2018 15:16:54 +0000 (11:16 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 31 Aug 2018 13:24:33 +0000 (09:24 -0400)
commit1526dbeb54f202e9fa2de660fd18030ebaa99f49
tree4f09f59cb344c3b58966221ea42a2625d9b4941d
parent4d471563d87b2b83e73b8abffb9273950e6d2e36
media: ipu3-cio2: Use dma_zalloc_coherent to replace dma_alloc_coherent + memset

dma_zalloc_coherent has implemented the dma_alloc_coherent() + memset(),
We prefer to dma_zalloc_coherent instead of open-codeing.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/intel/ipu3/ipu3-cio2.c