]> git.baikalelectronics.ru Git - kernel.git/commit
dma: pl330: fix a couple of compilation warnings
authorOlof Johansson <olof@lixom.net>
Sun, 8 Apr 2012 23:26:19 +0000 (16:26 -0700)
committerVinod Koul <vinod.koul@linux.intel.com>
Wed, 25 Apr 2012 09:35:25 +0000 (15:05 +0530)
commitff7bcdb5bb40d50c8b290a4658b9fef0addf9d30
treefda89297dbcfb8d5319832cef4d665ba953f1d6a
parent6c42c6fb71f10f0828e74b6b4bcd8f526efc1e4a
dma: pl330: fix a couple of compilation warnings

Move a couple of tests and do a minor refactor to avoid:

drivers/dma/pl330.c: In function 'pl330_probe':
drivers/dma/pl330.c:2929:215: warning: comparison of distinct pointer types lacks a cast [enabled by default]
drivers/dma/pl330.c: In function 'pl330_tasklet':
drivers/dma/pl330.c:2250:8: warning: 'pch' may be used uninitialized in this function [-Wuninitialized]
drivers/dma/pl330.c:2228:25: note: 'pch' was declared here
drivers/dma/pl330.c:2277:130: warning: 'pch' may be used uninitialized in this function [-Wuninitialized]
drivers/dma/pl330.c:2260:25: note: 'pch' was declared here

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/pl330.c