dma-bcm2708: Fix module compilation of CONFIG_DMA_BCM2708
authorAndrei Gherzan <andrei@gherzan.com>
Mon, 5 Jun 2017 15:40:38 +0000 (16:40 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sat, 31 Mar 2018 14:54:18 +0000 (15:54 +0100)
commit08d8c600b7d45ed7d00e48d16bc8988d0e1ebf40
tree656519ec94258cb55e949df7ae6403b115168613
parent5b5cdc396c2af48c0976d2d3ceb594335259bca4
dma-bcm2708: Fix module compilation of CONFIG_DMA_BCM2708

bcm2708-dmaengine.c defines functions like bcm_dma_start which are
defined as well in dma-bcm2708.h as inline versions when
CONFIG_DMA_BCM2708 is not defined. This works fine when
CONFIG_DMA_BCM2708 is built in, but when it is selected as module build
fails with redefinition errors because in the build system when
CONFIG_DMA_BCM2708 is selected as module, the macro becomes
CONFIG_DMA_BCM2708_MODULE.

This patch makes the header use CONFIG_DMA_BCM2708_MODULE too when
available.

Fixes https://github.com/raspberrypi/linux/issues/2056

Signed-off-by: Andrei Gherzan <andrei@gherzan.com>
include/linux/platform_data/dma-bcm2708.h