diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2014-10-16 05:00:53 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-11-06 01:02:44 -0500 |
commit | 09573a89cfdadf72747dbfbf8f8b79becb2dd457 (patch) | |
tree | bcadd4b631db6ec88464dd457a0ba1395aa653cc | |
parent | 979a281efe1107fff9142b18c1605fb6b7413003 (diff) |
dmaengine: pl08x: Remove chancnt affectations
chanctnt is already filled by dma_async_device_register, which uses the channel
list to know how much channels there is.
Since it's already filled, we can safely remove it from the drivers' probe
function.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/amba-pl08x.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c index e34024b000a4..1364d00881dd 100644 --- a/drivers/dma/amba-pl08x.c +++ b/drivers/dma/amba-pl08x.c | |||
@@ -2164,7 +2164,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id) | |||
2164 | __func__, ret); | 2164 | __func__, ret); |
2165 | goto out_no_memcpy; | 2165 | goto out_no_memcpy; |
2166 | } | 2166 | } |
2167 | pl08x->memcpy.chancnt = ret; | ||
2168 | 2167 | ||
2169 | /* Register slave channels */ | 2168 | /* Register slave channels */ |
2170 | ret = pl08x_dma_init_virtual_channels(pl08x, &pl08x->slave, | 2169 | ret = pl08x_dma_init_virtual_channels(pl08x, &pl08x->slave, |
@@ -2175,7 +2174,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id) | |||
2175 | __func__, ret); | 2174 | __func__, ret); |
2176 | goto out_no_slave; | 2175 | goto out_no_slave; |
2177 | } | 2176 | } |
2178 | pl08x->slave.chancnt = ret; | ||
2179 | 2177 | ||
2180 | ret = dma_async_device_register(&pl08x->memcpy); | 2178 | ret = dma_async_device_register(&pl08x->memcpy); |
2181 | if (ret) { | 2179 | if (ret) { |