diff options
author | Richard Zhao <richard.zhao@linaro.org> | 2012-02-02 10:12:00 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-02-27 15:17:58 +0800 |
commit | 89857353f9264785517393753ec9e77dba144734 (patch) | |
tree | 75e62338b966ccf949ab00f2363038226eebd8b1 /arch/arm/plat-mxc | |
parent | cdaf29cfd8d76bc6133b1a1d127d029a966df66c (diff) | |
download | linux-89857353f9264785517393753ec9e77dba144734.tar.bz2 |
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>
Diffstat (limited to 'arch/arm/plat-mxc')
-rw-r--r-- | arch/arm/plat-mxc/include/mach/dma.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/plat-mxc/include/mach/dma.h b/arch/arm/plat-mxc/include/mach/dma.h index 233d0a5e2d68..1b9080385b46 100644 --- a/arch/arm/plat-mxc/include/mach/dma.h +++ b/arch/arm/plat-mxc/include/mach/dma.h @@ -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"); } |