Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 09573a89 authored by Maxime Ripard's avatar Maxime Ripard Committed by Vinod Koul
Browse files

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: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 979a281e
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -2164,7 +2164,6 @@ static int pl08x_probe(struct amba_device *adev, const struct amba_id *id)
			 __func__, ret);
			 __func__, ret);
		goto out_no_memcpy;
		goto out_no_memcpy;
	}
	}
	pl08x->memcpy.chancnt = ret;


	/* Register slave channels */
	/* Register slave channels */
	ret = pl08x_dma_init_virtual_channels(pl08x, &pl08x->slave,
	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)
				__func__, ret);
				__func__, ret);
		goto out_no_slave;
		goto out_no_slave;
	}
	}
	pl08x->slave.chancnt = ret;


	ret = dma_async_device_register(&pl08x->memcpy);
	ret = dma_async_device_register(&pl08x->memcpy);
	if (ret) {
	if (ret) {