From a809f1e5034c37f8b2d27e74eea31246d6cff82d Mon Sep 17 00:00:00 2001 From: Linus Walleij Date: Fri, 10 Sep 2010 11:58:12 +0200 Subject: [PATCH 28/58] DMAENGINE: make sure we can always define PL08X platform data If you try to compile platform data structs for the PL08X without it being compiled in, symbol resoltion will fail on the filter function when linking the kernel, so provide a dummy function. Signed-off-by: Linus Walleij --- include/linux/amba/pl08x.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/linux/amba/pl08x.h b/include/linux/amba/pl08x.h index d54fbff..d2f2935 100644 --- a/include/linux/amba/pl08x.h +++ b/include/linux/amba/pl08x.h @@ -203,6 +203,13 @@ struct pl08x_platform_data { void (*put_signal)(struct pl08x_dma_chan *); }; +#ifdef CONFIG_AMBA_PL08X bool pl08x_filter_id(struct dma_chan *chan, void *chan_id); +#else +static bool pl08x_filter_id(struct dma_chan *chan, void *chan_id) +{ + return false; +} +#endif #endif /* AMBA_PL08X_H */ -- 1.6.3.3