]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Oct 2023 21:08:52 +0000 (23:08 +0200)
commit53c6dc71bf35346f7bca069cb0b90940e98ed762
treec6f9bd019d248f1f0251f5a6d1fa4530bdb129d9
parent789d125c0ebb3cd7606a4b4259f2c0b8fe6c8701
can: sun4i_can: Only show Kconfig if ARCH_SUNXI is set

[ Upstream commit 1f223208ebdef84f21c15e9958c005a93c871aa2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/Kconfig