Skip to content

Commit

Permalink
ARM: mxc: make imx_dma_is_general_purpose more generic for sdma
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Richard Zhao authored and Shawn Guo committed Feb 27, 2012
1 parent cdaf29c commit 8985735
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/arm/plat-mxc/include/mach/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 8985735

Please sign in to comment.