aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoojin Kim <boojin.kim@samsung.com>2011-12-26 18:51:41 +0900
committerVinod Koul <vinod.koul@linux.intel.com>2012-03-08 17:59:29 +0530
commitb06db6e56c0850617291b8921582d04255022425 (patch)
tree38b83479591eddd1bdb874cfc714267184fe6e61
parentb7d861d9394534db94f0fb8f4b9d984f996d0528 (diff)
downloadkernel_goldelico_gta04-b06db6e56c0850617291b8921582d04255022425.zip
kernel_goldelico_gta04-b06db6e56c0850617291b8921582d04255022425.tar.gz
kernel_goldelico_gta04-b06db6e56c0850617291b8921582d04255022425.tar.bz2
DMA: PL330: Removes useless function
Cc: Jassi Brar <jassisinghbrar@gmail.com> Cc: Linus Walleij <linus.walleij@linaro.org> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Boojin Kim <boojin.kim@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com> Acked-by: Jassi Brar <jassisinghbrar@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
-rw-r--r--drivers/dma/pl330.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 2e351f4..dd74c24 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -1824,52 +1824,6 @@ static int pl330_chan_ctrl(void *ch_id, enum pl330_chan_op op)
return ret;
}
-static int pl330_chan_status(void *ch_id, struct pl330_chanstatus *pstatus)
-{
- struct pl330_thread *thrd = ch_id;
- struct pl330_dmac *pl330;
- struct pl330_info *pi;
- void __iomem *regs;
- int active;
- u32 val;
-
- if (!pstatus || !thrd || thrd->free)
- return -EINVAL;
-
- pl330 = thrd->dmac;
- pi = pl330->pinfo;
- regs = pi->base;
-
- /* The client should remove the DMAC and add again */
- if (pl330->state == DYING)
- pstatus->dmac_halted = true;
- else
- pstatus->dmac_halted = false;
-
- val = readl(regs + FSC);
- if (val & (1 << thrd->id))
- pstatus->faulting = true;
- else
- pstatus->faulting = false;
-
- active = thrd->req_running;
-
- if (active == -1) {
- /* Indicate that the thread is not running */
- pstatus->top_req = NULL;
- pstatus->wait_req = NULL;
- } else {
- pstatus->top_req = thrd->req[active].r;
- pstatus->wait_req = !IS_FREE(&thrd->req[1 - active])
- ? thrd->req[1 - active].r : NULL;
- }
-
- pstatus->src_addr = readl(regs + SA(thrd->id));
- pstatus->dst_addr = readl(regs + DA(thrd->id));
-
- return 0;
-}
-
/* Reserve an event */
static inline int _alloc_event(struct pl330_thread *thrd)
{