提交 89857353 编写于 作者: R Richard Zhao 提交者: Shawn Guo

ARM: mxc: make imx_dma_is_general_purpose more generic for sdma

sdma device names vary for different SoC. So we just check
whether it includes "sdma" substring.
Signed-off-by: NRichard Zhao <richard.zhao@linaro.org>
Acked-by: NSascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: NShawn Guo <shawn.guo@linaro.org>
上级 cdaf29cf
...@@ -60,8 +60,7 @@ static inline int imx_dma_is_ipu(struct dma_chan *chan) ...@@ -60,8 +60,7 @@ static inline int imx_dma_is_ipu(struct dma_chan *chan)
static inline int imx_dma_is_general_purpose(struct dma_chan *chan) static inline int imx_dma_is_general_purpose(struct dma_chan *chan)
{ {
return !strcmp(dev_name(chan->device->dev), "imx31-sdma") || return strstr(dev_name(chan->device->dev), "sdma") ||
!strcmp(dev_name(chan->device->dev), "imx35-sdma") ||
!strcmp(dev_name(chan->device->dev), "imx-dma"); !strcmp(dev_name(chan->device->dev), "imx-dma");
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册