History

dmaengine: omap: hide filter_fn for built-in drivers

It is not possible to reference the omap_dma_filter_fn filter function from a built-in driver if the dmaengine driver itself is a loadable module, which is a valid configuration otherwise. This provides only the dummy alternative if the function is referenced by a built-in driver to allow a successful build. The filter function is only required by ATAGS based platforms, which will continue to be broken after this change for the bogus configuration. When booting from DT, with the dma channels correctly listed there, it will work fine.

Arnd Bergmann committed 12 years ago

Commit a8246fe1 parent 97977f71 file · +1 −1Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/linux/omap-dma.h+1−1
@@ -10,7 +10,7 @@ · 9 unmodified lines
10 10
11struct dma_chan;11struct dma_chan;
12 12
13#if defined(CONFIG_DMA_OMAP) || defined(CONFIG_DMA_OMAP_MODULE)13#if defined(CONFIG_DMA_OMAP) || (defined(CONFIG_DMA_OMAP_MODULE) && defined(MODULE))
14bool omap_dma_filter_fn(struct dma_chan *, void *);14bool omap_dma_filter_fn(struct dma_chan *, void *);
15#else15#else
16static inline bool omap_dma_filter_fn(struct dma_chan *c, void *d)16static inline bool omap_dma_filter_fn(struct dma_chan *c, void *d)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t