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

can: CAN_BXCAN should depend on ARCH_STM32

The STMicroelectronics STM32 basic extended CAN Controller (bxCAN) is
only present on STM32 SoCs. Hence drop the "|| OF" part from its
dependency rule, to prevent asking the user about this driver when
configuring a kernel without STM32 SoC support.

Fixes: f00647d8127be4d3 ("can: bxcan: add support for ST bxCAN controller")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/all/40095112efd1b2214e4223109fd9f0c6d0158a2d.1680609318.git.geert+renesas@glider.be
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>

authored by

Geert Uytterhoeven and committed by
Marc Kleine-Budde
4920bded 6bffdc38

+1 -1
+1 -1
drivers/net/can/Kconfig
··· 95 95 96 96 config CAN_BXCAN 97 97 tristate "STM32 Basic Extended CAN (bxCAN) devices" 98 - depends on OF || ARCH_STM32 || COMPILE_TEST 98 + depends on ARCH_STM32 || COMPILE_TEST 99 99 depends on HAS_IOMEM 100 100 select CAN_RX_OFFLOAD 101 101 help