diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-06-19 17:38:12 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-07-29 13:53:19 +0300 |
commit | a6a20885f1e13340e30ec35acfdcf14756ecf03c (patch) | |
tree | 62c38dc72f3c8891a8b5a773dd8b978165829794 /drivers/usb/musb/musb_dma.h | |
parent | 66c01883ef19bf4537b16931567b7d35c65356ad (diff) | |
download | talos-obmc-linux-a6a20885f1e13340e30ec35acfdcf14756ecf03c.tar.gz talos-obmc-linux-a6a20885f1e13340e30ec35acfdcf14756ecf03c.zip |
usb: musb: provide empty dma_controller_create() in PIO mode
Add a dma_controller_create() returning NULL so a few ifdefs can
dropped.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/musb/musb_dma.h')
-rw-r--r-- | drivers/usb/musb/musb_dma.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_dma.h b/drivers/usb/musb/musb_dma.h index 36037114ad4a..c8e67fde2156 100644 --- a/drivers/usb/musb/musb_dma.h +++ b/drivers/usb/musb/musb_dma.h @@ -175,9 +175,20 @@ struct dma_controller { /* called after channel_program(), may indicate a fault */ extern void musb_dma_completion(struct musb *musb, u8 epnum, u8 transmit); +#ifdef CONFIG_MUSB_PIO_ONLY +static inline struct dma_controller *dma_controller_create(struct musb *m, + void __iomem *io) +{ + return NULL; +} + +static inline void dma_controller_destroy(struct dma_controller *d) { } + +#else extern struct dma_controller *dma_controller_create(struct musb *, void __iomem *); extern void dma_controller_destroy(struct dma_controller *); +#endif #endif /* __MUSB_DMA_H__ */ |