Skip to content

Commit

Permalink
drivers/soc: ti: fix build break with modules
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Olof Johansson committed Sep 24, 2014
1 parent 3730964 commit b2fc3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/soc/ti/knav_dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ struct knav_dma_desc {
u32 pad[4];
} ____cacheline_aligned;

#ifdef CONFIG_KEYSTONE_NAVIGATOR_DMA
#if IS_ENABLED(CONFIG_KEYSTONE_NAVIGATOR_DMA)
void *knav_dma_open_channel(struct device *dev, const char *name,
struct knav_dma_cfg *config);
void knav_dma_close_channel(void *channel);
Expand Down

0 comments on commit b2fc3f3

Please sign in to comment.