diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-01-07 11:02:28 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2014-01-07 11:02:28 -0500 |
commit | 4fce628f685945df4fd6fa1cab6f7eb397dc9267 (patch) | |
tree | 56427ef9cea9b6ca11c66d6dd6b50a73402b62ad /include/linux/dmaengine.h | |
parent | 1080411c6bf9da8e815292ccdb22f64662a38bb2 (diff) | |
parent | 0ad7c00057dc1640647c1dc81ccbd009de17a767 (diff) |
Merge branch 'topic/defer_probe' into for-linus
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r-- | include/linux/dmaengine.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index bd6b88222ced..de550c61ba43 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
@@ -22,6 +22,7 @@ | |||
22 | #define LINUX_DMAENGINE_H | 22 | #define LINUX_DMAENGINE_H |
23 | 23 | ||
24 | #include <linux/device.h> | 24 | #include <linux/device.h> |
25 | #include <linux/err.h> | ||
25 | #include <linux/uio.h> | 26 | #include <linux/uio.h> |
26 | #include <linux/bug.h> | 27 | #include <linux/bug.h> |
27 | #include <linux/scatterlist.h> | 28 | #include <linux/scatterlist.h> |
@@ -1039,6 +1040,8 @@ enum dma_status dma_wait_for_async_tx(struct dma_async_tx_descriptor *tx); | |||
1039 | void dma_issue_pending_all(void); | 1040 | void dma_issue_pending_all(void); |
1040 | struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, | 1041 | struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, |
1041 | dma_filter_fn fn, void *fn_param); | 1042 | dma_filter_fn fn, void *fn_param); |
1043 | struct dma_chan *dma_request_slave_channel_reason(struct device *dev, | ||
1044 | const char *name); | ||
1042 | struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name); | 1045 | struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name); |
1043 | void dma_release_channel(struct dma_chan *chan); | 1046 | void dma_release_channel(struct dma_chan *chan); |
1044 | #else | 1047 | #else |
@@ -1062,6 +1065,11 @@ static inline struct dma_chan *__dma_request_channel(const dma_cap_mask_t *mask, | |||
1062 | { | 1065 | { |
1063 | return NULL; | 1066 | return NULL; |
1064 | } | 1067 | } |
1068 | static inline struct dma_chan *dma_request_slave_channel_reason( | ||
1069 | struct device *dev, const char *name) | ||
1070 | { | ||
1071 | return ERR_PTR(-ENODEV); | ||
1072 | } | ||
1065 | static inline struct dma_chan *dma_request_slave_channel(struct device *dev, | 1073 | static inline struct dma_chan *dma_request_slave_channel(struct device *dev, |
1066 | const char *name) | 1074 | const char *name) |
1067 | { | 1075 | { |