Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: rz-mtu3: Fix COMPILE_TEST build error

When (MFD) RZ_MTU3=m and PWM_RZ_MTU3=y, It hits the below error
aarch64-linux-gnu-ld: rz-mtu3.c:(.text+0x544): undefined reference to `mfd_remove_devices'

Fix this issue by selecting MFD_CORE.

Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Closes: https://lore.kernel.org/linux-pwm/20230718090023.wo6m6ffzaifgctkj@pengutronix.de/
Suggested-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20230718134314.118333-1-biju.das.jz@bp.renesas.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Biju Das and committed by
Lee Jones
94f34d99 dc0c386e

+1
+1
drivers/mfd/Kconfig
··· 1373 1373 config RZ_MTU3 1374 1374 tristate "Renesas RZ/G2L MTU3a core driver" 1375 1375 depends on (ARCH_RZG2L && OF) || COMPILE_TEST 1376 + select MFD_CORE 1376 1377 help 1377 1378 Select this option to enable Renesas RZ/G2L MTU3a core driver for 1378 1379 the Multi-Function Timer Pulse Unit 3 (MTU3a) hardware available