diff options
author | Shawn Guo <shawn.guo@linaro.org> | 2012-05-10 06:23:26 +0800 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-05-12 13:32:17 +0800 |
commit | 8c92013643f5c40633d61ae331cef49c1069af10 (patch) | |
tree | 7c385fabafab5ded73621c42639b61e06fa94f6e /include/linux/fsl | |
parent | bb11fb63fc2e5d1092f17d91790bb4aede6d3ef2 (diff) | |
download | linux-stable-8c92013643f5c40633d61ae331cef49c1069af10.tar.gz linux-stable-8c92013643f5c40633d61ae331cef49c1069af10.tar.bz2 linux-stable-8c92013643f5c40633d61ae331cef49c1069af10.zip |
dma: mxs-dma: make platform_device_id more generic
Rewrite mxs_dma_is_apbh and mxs_dma_is_apbx in order to support
other SoCs like imx6q and reform the platform_device_id for the
better further dt support.
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Huang Shijie <b32955@freescale.com>
Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/fsl')
-rw-r--r-- | include/linux/fsl/mxs-dma.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/include/linux/fsl/mxs-dma.h b/include/linux/fsl/mxs-dma.h index 203d7c4a3e11..55d870238399 100644 --- a/include/linux/fsl/mxs-dma.h +++ b/include/linux/fsl/mxs-dma.h @@ -15,14 +15,6 @@ struct mxs_dma_data { int chan_irq; }; -static inline int mxs_dma_is_apbh(struct dma_chan *chan) -{ - return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbh"); -} - -static inline int mxs_dma_is_apbx(struct dma_chan *chan) -{ - return !strcmp(dev_name(chan->device->dev), "mxs-dma-apbx"); -} - +extern int mxs_dma_is_apbh(struct dma_chan *chan); +extern int mxs_dma_is_apbx(struct dma_chan *chan); #endif /* __MACH_MXS_DMA_H__ */ |