Commit 91f8aecc authored by Vinod Koul's avatar Vinod Koul Committed by Vinod Koul

dmaengine: fix !of_dma compilation warning

Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Reported-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent 9743a3b6
...@@ -44,7 +44,7 @@ extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np, ...@@ -44,7 +44,7 @@ extern struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, extern struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
struct of_dma *ofdma); struct of_dma *ofdma);
#else #else
static int of_dma_controller_register(struct device_node *np, static inline int of_dma_controller_register(struct device_node *np,
struct dma_chan *(*of_dma_xlate) struct dma_chan *(*of_dma_xlate)
(struct of_phandle_args *, struct of_dma *), (struct of_phandle_args *, struct of_dma *),
void *data) void *data)
...@@ -52,17 +52,18 @@ static int of_dma_controller_register(struct device_node *np, ...@@ -52,17 +52,18 @@ static int of_dma_controller_register(struct device_node *np,
return -ENODEV; return -ENODEV;
} }
static int of_dma_controller_free(struct device_node *np) static inline int of_dma_controller_free(struct device_node *np)
{ {
return -ENODEV;
} }
static struct dma_chan *of_dma_request_slave_channel(struct device_node *np, static inline struct dma_chan *of_dma_request_slave_channel(struct device_node *np,
char *name) char *name)
{ {
return NULL; return NULL;
} }
static struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec, static inline struct dma_chan *of_dma_simple_xlate(struct of_phandle_args *dma_spec,
struct of_dma *ofdma) struct of_dma *ofdma)
{ {
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment