From: Markus Pargmann <[email protected]>
Signed-off-by: Markus Pargmann <[email protected]>
---
sound/soc/soc-generic-dmaengine-pcm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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]);
}
}
--
1.8.1.5
_______________________________________________
devicetree-discuss mailing list
[email protected]
https://lists.ozlabs.org/listinfo/devicetree-discuss