diff options
author | Zhangfei Gao <zhangfei.gao@linaro.org> | 2014-01-13 22:37:43 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-01-20 03:23:20 -0500 |
commit | c61177c548c53b7bf838135deb5d26713094b2c7 (patch) | |
tree | cdba8e167ad0be1ce54ebea113dbec79a8fea246 /drivers/dma/k3dma.c | |
parent | 70cbb163de1c6de239375b967caf372a98fae935 (diff) |
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: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/k3dma.c')
-rw-r--r-- | drivers/dma/k3dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c index e26075408e9b..a1f911aaf220 100644 --- a/drivers/dma/k3dma.c +++ b/drivers/dma/k3dma.c | |||
@@ -477,7 +477,7 @@ static struct dma_async_tx_descriptor *k3_dma_prep_slave_sg( | |||
477 | dma_addr_t addr, src = 0, dst = 0; | 477 | dma_addr_t addr, src = 0, dst = 0; |
478 | int num = sglen, i; | 478 | int num = sglen, i; |
479 | 479 | ||
480 | if (sgl == 0) | 480 | if (sgl == NULL) |
481 | return NULL; | 481 | return NULL; |
482 | 482 | ||
483 | for_each_sg(sgl, sg, sglen, i) { | 483 | for_each_sg(sgl, sg, sglen, i) { |
@@ -817,7 +817,7 @@ static int k3_dma_resume(struct device *dev) | |||
817 | return 0; | 817 | return 0; |
818 | } | 818 | } |
819 | 819 | ||
820 | SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume); | 820 | static SIMPLE_DEV_PM_OPS(k3_dma_pmops, k3_dma_suspend, k3_dma_resume); |
821 | 821 | ||
822 | static struct platform_driver k3_pdma_driver = { | 822 | static struct platform_driver k3_pdma_driver = { |
823 | .driver = { | 823 | .driver = { |