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)
commitc847382838ca503b6c55fb599160146221a2c141
treefda89297dbcfb8d5319832cef4d665ba953f1d6a
parent7e426da823fc7cd428b82ff2cf3615da24c73352
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