aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/omap-dma.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2020-11-27 15:46:47 +0100
committerArnd Bergmann <arnd@arndb.de>2022-04-21 15:01:53 +0200
commit17ea03b75e5665c9ce4945aa5afd097f3c845cdf (patch)
treeddc52dd28982b7bfe624c96e23ce2daca8758e13 /include/linux/omap-dma.h
parentARM: omap: remove debug-leds driver (diff)
downloadwireguard-linux-17ea03b75e5665c9ce4945aa5afd097f3c845cdf.tar.xz
wireguard-linux-17ea03b75e5665c9ce4945aa5afd097f3c845cdf.zip
ARM: omap: dma: make usb support optional
Most of the plat-omap/dma.c code is specific to the USB driver. Hide that code when it is not in use, to make it clearer which parts are actually still required. Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'include/linux/omap-dma.h')
-rw-r--r--include/linux/omap-dma.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h
index 5e228428fda1..07fa58ae9902 100644
--- a/include/linux/omap-dma.h
+++ b/include/linux/omap-dma.h
@@ -299,8 +299,9 @@ extern void omap_set_dma_priority(int lch, int dst_port, int priority);
extern int omap_request_dma(int dev_id, const char *dev_name,
void (*callback)(int lch, u16 ch_status, void *data),
void *data, int *dma_ch);
-extern void omap_disable_dma_irq(int ch, u16 irq_bits);
extern void omap_free_dma(int ch);
+#if IS_ENABLED(CONFIG_USB_OMAP)
+extern void omap_disable_dma_irq(int ch, u16 irq_bits);
extern void omap_start_dma(int lch);
extern void omap_stop_dma(int lch);
extern void omap_set_dma_transfer_params(int lch, int data_type,
@@ -326,6 +327,8 @@ extern void omap_set_dma_dest_burst_mode(int lch,
extern dma_addr_t omap_get_dma_src_pos(int lch);
extern dma_addr_t omap_get_dma_dst_pos(int lch);
extern int omap_get_dma_active_status(int lch);
+#endif
+
extern int omap_dma_running(void);
#if IS_ENABLED(CONFIG_FB_OMAP)