]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
can: sun4i_can: Only show Kconfig if ARCH_SUNXI is set
authorJohn Watts <contact@jookia.org>
Tue, 5 Sep 2023 23:13:43 +0000 (09:13 +1000)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 6 Oct 2023 10:54:33 +0000 (12:54 +0200)
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: 8abb95250ae6 ("can: sun4i_can: Add support for the Allwinner D1")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Closes: https://lore.kernel.org/linux-sunxi/CAMuHMdV2m54UAH0X2dG7stEg=grFihrdsz4+o7=_DpBMhjTbkw@mail.gmail.com/
Signed-off-by: John Watts <contact@jookia.org>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/all/20230905231342.2042759-2-contact@jookia.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/Kconfig

index 649453a3c8588b775ea18d0584252c46b2ce6000..f8cde9f9f554d5a0f7d0c48c81aef7793d9555fd 100644 (file)
@@ -190,7 +190,7 @@ config CAN_SLCAN
 
 config CAN_SUN4I
        tristate "Allwinner A10 CAN controller"
-       depends on MACH_SUN4I || MACH_SUN7I || RISCV || COMPILE_TEST
+       depends on MACH_SUN4I || MACH_SUN7I || (RISCV && ARCH_SUNXI) || COMPILE_TEST
        help
          Say Y here if you want to use CAN controller found on Allwinner
          A10/A20/D1 SoCs.