diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-07-06 14:32:21 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-07-15 12:31:03 -0400 |
commit | 7ae342fd6fd2bc1f694cf2c8fcbbeb2d2a017658 (patch) | |
tree | c4a2a12e61ddff531a1686c2caf83071c5f365b0 /drivers/dma/pl330.c | |
parent | fa01ef38d60096aa689bcc2659aedd4a9ae83cd1 (diff) |
dmaengine: pl330: Remove unused dmac_reset callback
The dmac_reset() callaback of the pl330_info struct is always set to NULL, so
remove it.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r-- | drivers/dma/pl330.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 9121edeb2727..f23c5f0b3dac 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c | |||
@@ -296,11 +296,6 @@ struct pl330_info { | |||
296 | void *pl330_data; | 296 | void *pl330_data; |
297 | /* Populated by the PL330 core driver during pl330_add */ | 297 | /* Populated by the PL330 core driver during pl330_add */ |
298 | struct pl330_config pcfg; | 298 | struct pl330_config pcfg; |
299 | /* | ||
300 | * If the DMAC has some reset mechanism, then the | ||
301 | * client may want to provide pointer to the method. | ||
302 | */ | ||
303 | void (*dmac_reset)(struct pl330_info *pi); | ||
304 | }; | 299 | }; |
305 | 300 | ||
306 | /** | 301 | /** |
@@ -2024,13 +2019,6 @@ static int pl330_add(struct pl330_info *pi) | |||
2024 | if (pi->pl330_data) | 2019 | if (pi->pl330_data) |
2025 | return -EINVAL; | 2020 | return -EINVAL; |
2026 | 2021 | ||
2027 | /* | ||
2028 | * If the SoC can perform reset on the DMAC, then do it | ||
2029 | * before reading its configuration. | ||
2030 | */ | ||
2031 | if (pi->dmac_reset) | ||
2032 | pi->dmac_reset(pi); | ||
2033 | |||
2034 | regs = pi->base; | 2022 | regs = pi->base; |
2035 | 2023 | ||
2036 | /* Check if we can handle this DMAC */ | 2024 | /* Check if we can handle this DMAC */ |