OSDN Git Service

wan/fsl_ucc_hdlc: use dma_zalloc_coherent instead of allocator/memset
authorYueHaibing <yuehaibing@huawei.com>
Mon, 4 Jun 2018 13:07:59 +0000 (21:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 21:27:59 +0000 (17:27 -0400)
commit1f55c2865c21a49d882261cfa8d85635814ad8ab
treecc43be9e6881d9c6f12288aba47df711b5436551
parent828da43224c089ab54be0c22c0fba30c77cd60c3
wan/fsl_ucc_hdlc: use dma_zalloc_coherent instead of allocator/memset

Use dma_zalloc_coherent instead of dma_alloc_coherent
followed by memset 0.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/fsl_ucc_hdlc.c