Commit c67886f5 authored by Jon Hunter's avatar Jon Hunter Committed by Vinod Koul

dmaengine: tegra-apb: Remove unused variables

The callback and callback_param members of the tegra_dma_sg_req structure
are never used. The dma-engine structure, dma_async_tx_descriptor, defines
the same members and these are the ones used by the driver. Therefore,
remove the unused versions from the tegra_dma_sg_req structure.

The half_done member of tegra_dma_channel structure is configured but
never used and so remove it.
Signed-off-by: default avatarJon Hunter <jonathanh@nvidia.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 7dfffb95
...@@ -155,7 +155,6 @@ struct tegra_dma_sg_req { ...@@ -155,7 +155,6 @@ struct tegra_dma_sg_req {
int req_len; int req_len;
bool configured; bool configured;
bool last_sg; bool last_sg;
bool half_done;
struct list_head node; struct list_head node;
struct tegra_dma_desc *dma_desc; struct tegra_dma_desc *dma_desc;
}; };
...@@ -203,8 +202,6 @@ struct tegra_dma_channel { ...@@ -203,8 +202,6 @@ struct tegra_dma_channel {
/* ISR handler and tasklet for bottom half of isr handling */ /* ISR handler and tasklet for bottom half of isr handling */
dma_isr_handler isr_handler; dma_isr_handler isr_handler;
struct tasklet_struct tasklet; struct tasklet_struct tasklet;
dma_async_tx_callback callback;
void *callback_param;
/* Channel-slave specific configuration */ /* Channel-slave specific configuration */
unsigned int slave_id; unsigned int slave_id;
...@@ -1136,7 +1133,6 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic( ...@@ -1136,7 +1133,6 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic(
sg_req->ch_regs.apb_seq = apb_seq; sg_req->ch_regs.apb_seq = apb_seq;
sg_req->ch_regs.ahb_seq = ahb_seq; sg_req->ch_regs.ahb_seq = ahb_seq;
sg_req->configured = false; sg_req->configured = false;
sg_req->half_done = false;
sg_req->last_sg = false; sg_req->last_sg = false;
sg_req->dma_desc = dma_desc; sg_req->dma_desc = dma_desc;
sg_req->req_len = len; sg_req->req_len = len;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment