mediatek: Add support for Xiaomi Redmi Router AX6S
[openwrt/openwrt.git] / target / linux / bcm4908 / patches-5.4 / 073-v5.12-0013-net-broadcom-BCM4908_ENET-should-not-default-to-y-un.patch
1 From a3bc483216650a7232559bf0a1debfbabff3e12c Mon Sep 17 00:00:00 2001
2 From: Geert Uytterhoeven <geert+renesas@glider.be>
3 Date: Tue, 16 Mar 2021 15:03:41 +0100
4 Subject: [PATCH] net: broadcom: BCM4908_ENET should not default to y,
5 unconditionally
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 Merely enabling compile-testing should not enable additional code.
11 To fix this, restrict the automatic enabling of BCM4908_ENET to
12 ARCH_BCM4908.
13
14 Fixes: 4feffeadbcb2e5b1 ("net: broadcom: bcm4908enet: add BCM4908 controller driver")
15 Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
16 Acked-by: Florian Fainelli <f.fainelli@gmail.com>
17 Acked-by: Rafał Miłecki <rafal@milecki.pl>
18 Signed-off-by: David S. Miller <davem@davemloft.net>
19 ---
20 drivers/net/ethernet/broadcom/Kconfig | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/drivers/net/ethernet/broadcom/Kconfig
24 +++ b/drivers/net/ethernet/broadcom/Kconfig
25 @@ -54,7 +54,7 @@ config B44_PCI
26 config BCM4908_ENET
27 tristate "Broadcom BCM4908 internal mac support"
28 depends on ARCH_BCM4908 || COMPILE_TEST
29 - default y
30 + default y if ARCH_BCM4908
31 help
32 This driver supports Ethernet controller integrated into Broadcom
33 BCM4908 family SoCs.