提交 c61177c5 编写于 作者: Z Zhangfei Gao 提交者: Vinod Koul

dmaengine: k3dma: fix sparse warnings

Fix sparse warnings:
drivers/dma/k3dma.c:480:20: warning: Using plain integer as NULL pointer
drivers/dma/k3dma.c:820:1: warning: symbol 'k3_dma_pmops' was not declared. Should it be static?
Signed-off-by: NZhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 70cbb163
...@@ -477,7 +477,7 @@ static struct dma_async_tx_descriptor *k3_dma_prep_slave_sg( ...@@ -477,7 +477,7 @@ static struct dma_async_tx_descriptor *k3_dma_prep_slave_sg(
dma_addr_t addr, src = 0, dst = 0; dma_addr_t addr, src = 0, dst = 0;
int num = sglen, i; int num = sglen, i;
if (sgl == 0) if (sgl == NULL)
return NULL; return NULL;
for_each_sg(sgl, sg, sglen, i) { for_each_sg(sgl, sg, sglen, i) {
...@@ -817,7 +817,7 @@ static int k3_dma_resume(struct device *dev) ...@@ -817,7 +817,7 @@ static int k3_dma_resume(struct device *dev)
return 0; return 0;
} }
SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume); static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume);
static struct platform_driver k3_pdma_driver = { static struct platform_driver k3_pdma_driver = {
.driver = { .driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册