Skip to content

Commit ff91a5d

Browse files
Ziyuan Xurkhuangtao
authored andcommitted
pwm: pwm-rockchip-i2s: initialize the dma_slave_config to zero
Fixes: ddd2e87("dmaengine: pl330: add support for interlace size config") Change-Id: I685d911f41f4654792a0b8cdecf29f928e938656 Signed-off-by: Ziyuan Xu <[email protected]>
1 parent 370c79d commit ff91a5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pwm/pwm-rockchip-i2s.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ static int rockchip_i2s_pwm_dma_request(struct rockchip_i2s_pwm_chip *pc,
312312
struct dma_slave_config dma_sconfig;
313313
int ret;
314314

315+
memset(&dma_sconfig, 0, sizeof(dma_sconfig));
316+
315317
dma->chan_tx = dma_request_slave_channel(dev, "tx");
316318
if (!dma->chan_tx) {
317319
dev_err(dev, "can't request DMA tx channel\n");

0 commit comments

Comments
 (0)