mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Richard Zhao <richard.zhao@linaro.org> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
This commit is contained in:
parent
cdaf29cfd8
commit
89857353f9
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
return !strcmp(dev_name(chan->device->dev), "imx31-sdma") ||
|
||||
!strcmp(dev_name(chan->device->dev), "imx35-sdma") ||
|
||||
return strstr(dev_name(chan->device->dev), "sdma") ||
|
||||
!strcmp(dev_name(chan->device->dev), "imx-dma");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue