Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: tegra20-apb: stop checking config->slave_id

Nothing sets the slave_id field any more, so stop accessing
it to allow the removal of this field.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211122222203.4103644-11-arnd@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Arnd Bergmann and committed by
Vinod Koul
d53939dc 0725ac9a

-6
-6
drivers/dma/tegra20-apb-dma.c
··· 343 343 } 344 344 345 345 memcpy(&tdc->dma_sconfig, sconfig, sizeof(*sconfig)); 346 - if (tdc->slave_id == TEGRA_APBDMA_SLAVE_ID_INVALID && 347 - sconfig->device_fc) { 348 - if (sconfig->slave_id > TEGRA_APBDMA_CSR_REQ_SEL_MASK) 349 - return -EINVAL; 350 - tdc->slave_id = sconfig->slave_id; 351 - } 352 346 tdc->config_init = true; 353 347 354 348 return 0;