OSDN Git Service

mfd: stm32-timers: Fix pwm-stm32 linker issue with COMPILE_TEST
authorFabrice Gasnier <fabrice.gasnier@st.com>
Fri, 18 May 2018 15:24:03 +0000 (17:24 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 4 Jun 2018 06:14:17 +0000 (07:14 +0100)
commitd95c9760d9c8e046b09b54a3bb6dd0c9aa7a0eff
treed250d277f3d9d23e2a01c1b714fe5440e499d392
parenta3b51be3cdac4844b2d8bb7c4dad95e191a05697
mfd: stm32-timers: Fix pwm-stm32 linker issue with COMPILE_TEST

This is seen when COMPILE_TEST=y and MFD_STM32_TIMERS=n.
drivers/pwm/pwm-stm32.o: In function 'stm32_pwm_raw_capture':
pwm-stm32.c:... undefined reference to 'stm32_timers_dma_burst_read'
Fixes: 0c6609805b63 ("mfd: stm32-timers: Add support for DMAs")

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/stm32-timers.h