]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/soc: ti: fix build break with modules
authorOlof Johansson <olof@lixom.net>
Wed, 24 Sep 2014 18:42:38 +0000 (11:42 -0700)
committerOlof Johansson <olof@lixom.net>
Wed, 24 Sep 2014 18:53:39 +0000 (11:53 -0700)
commitb2b838e1eca227d2533eef43366a728a8df47f10
treef0dc84187f2d13952bf2959368813c39780ba6e4
parent542ed3183144168ceccdce8ec5a3fb5a93881a2d
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>
include/linux/soc/ti/knav_dma.h