mirror of
https://github.com/armbian/linux.git
synced 2026-01-06 10:13:00 -08:00
pwm: pwm-rockchip-i2s: initialize the dma_slave_config to zero
Fixes: ddd2e87ad41e("dmaengine: pl330: add support for interlace size config")
Change-Id: I685d911f41f4654792a0b8cdecf29f928e938656
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
@@ -312,6 +312,8 @@ static int rockchip_i2s_pwm_dma_request(struct rockchip_i2s_pwm_chip *pc,
|
||||
struct dma_slave_config dma_sconfig;
|
||||
int ret;
|
||||
|
||||
memset(&dma_sconfig, 0, sizeof(dma_sconfig));
|
||||
|
||||
dma->chan_tx = dma_request_slave_channel(dev, "tx");
|
||||
if (!dma->chan_tx) {
|
||||
dev_err(dev, "can't request DMA tx channel\n");
|
||||
|
||||
Reference in New Issue
Block a user