Message ID | 1365939779-4507-3-git-send-email-mpa@pengutronix.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/sound/soc/soc-generic-dmaengine-pcm.c b/sound/soc/soc-generic-dmaengine-pcm.c index d5467ff..2e25402 100644 --- a/sound/soc/soc-generic-dmaengine-pcm.c +++ b/sound/soc/soc-generic-dmaengine-pcm.c @@ -221,9 +221,9 @@ int snd_dmaengine_pcm_register(struct device *dev, if (flags & SND_DMAENGINE_PCM_FLAG_COMPAT) pcm->compat = true; - if (!(flags & SND_DMAENGINE_PCM_FLAG_NO_DT) && dev->of_node) { + if (!(flags & SND_DMAENGINE_PCM_FLAG_NO_DT)) { for (i = SNDRV_PCM_STREAM_PLAYBACK; i <= SNDRV_PCM_STREAM_CAPTURE; i++) { - pcm->chan[i] = of_dma_request_slave_channel(dev->of_node, + pcm->chan[i] = dma_request_slave_channel(dev, dmaengine_pcm_dma_channel_names[i]); } }