Skip to content

Commit 1f22320

Browse files
Jookiamarckleinebudde
authored andcommitted
can: sun4i_can: Only show Kconfig if ARCH_SUNXI is set
When adding the RISCV option I didn't gate it behind ARCH_SUNXI. As a result this option shows up with Allwinner support isn't enabled. Fix that by requiring ARCH_SUNXI to be set if RISCV is set. Fixes: 8abb952 ("can: sun4i_can: Add support for the Allwinner D1") Reported-by: Geert Uytterhoeven <[email protected]> Closes: https://lore.kernel.org/linux-sunxi/CAMuHMdV2m54UAH0X2dG7stEg=grFihrdsz4+o7=_DpBMhjTbkw@mail.gmail.com/ Signed-off-by: John Watts <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent d9c2ba6 commit 1f22320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/can/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ config CAN_SLCAN
190190

191191
config CAN_SUN4I
192192
tristate "Allwinner A10 CAN controller"
193-
depends on MACH_SUN4I || MACH_SUN7I || RISCV || COMPILE_TEST
193+
depends on MACH_SUN4I || MACH_SUN7I || (RISCV && ARCH_SUNXI) || COMPILE_TEST
194194
help
195195
Say Y here if you want to use CAN controller found on Allwinner
196196
A10/A20/D1 SoCs.

0 commit comments

Comments
 (0)