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:
Ziyuan Xu
2018-06-27 10:40:57 +08:00
committed by Tao Huang
parent 370c79d9ff
commit ff91a5dc43

View File

@@ -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");