diff options
author | Olof Johansson <olof@lixom.net> | 2014-09-24 14:42:38 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-09-24 14:53:39 -0400 |
commit | b2fc3f3c6d397d434174147eca3db1ec778195ce (patch) | |
tree | f0dc84187f2d13952bf2959368813c39780ba6e4 | |
parent | 3730964321a79e563b763f604b79123c7e02c385 (diff) |
drivers/soc: ti: fix build break with modules
Fixes below build break by not switching to stubs when the driver is a module:
drivers/soc/ti/knav_dma.c:418:7: error: redefinition of 'knav_dma_open_channel'
void *knav_dma_open_channel(struct device *dev, const char *name,
^
In file included from drivers/soc/ti/knav_dma.c:26:0:
include/linux/soc/ti/knav_dma.h:165:21: note: previous definition of 'knav_dma_open_channel' was here
static inline void *knav_dma_open_channel(struct device *dev, const char *name,
^
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | include/linux/soc/ti/knav_dma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/soc/ti/knav_dma.h b/include/linux/soc/ti/knav_dma.h index e864a3eb9ac4..dad035c16d94 100644 --- a/include/linux/soc/ti/knav_dma.h +++ b/include/linux/soc/ti/knav_dma.h | |||
@@ -157,7 +157,7 @@ struct knav_dma_desc { | |||
157 | u32 pad[4]; | 157 | u32 pad[4]; |
158 | } ____cacheline_aligned; | 158 | } ____cacheline_aligned; |
159 | 159 | ||
160 | #ifdef CONFIG_KEYSTONE_NAVIGATOR_DMA | 160 | #if IS_ENABLED(CONFIG_KEYSTONE_NAVIGATOR_DMA) |
161 | void *knav_dma_open_channel(struct device *dev, const char *name, | 161 | void *knav_dma_open_channel(struct device *dev, const char *name, |
162 | struct knav_dma_cfg *config); | 162 | struct knav_dma_cfg *config); |
163 | void knav_dma_close_channel(void *channel); | 163 | void knav_dma_close_channel(void *channel); |