Skip to contentSkip to conversation

net: broadcom: Drop OF dependency from BGMAC_PLATFORM

PATCH Applied Florian Fainelli 3 participants 3 messages Jan 6, 2021 – Jan 7, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: broadcom: Drop OF dependency from BGMAC_PLATFORM

All of the OF code that is used has stubbed and will compile and link just fine, keeping COMPILE_TEST is enough.

---
 drivers/net/ethernet/broadcom/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/broadcom/Kconfig +0 -1
index 7b79528d6eed..4bdf8fbe75a6 100644
@@ -174,7 +174,6 @@ config BGMAC_BCMA
 config BGMAC_PLATFORM
 	tristate "Broadcom iProc GBit platform support"
 	depends on ARCH_BCM_IPROC || COMPILE_TEST
-	depends on OF
 	select BGMAC
 	select PHYLIB
 	select FIXED_PHY
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 2 lines · Florian Fainelli

All of the OF code that is used has stubbed and will compile and link just fine, keeping COMPILE_TEST is enough.

Yes, that matches my understanding.

I wish we had a list of which API families have full stub support...

Thanks.

Quoted 18 lines
---
 drivers/net/ethernet/broadcom/Kconfig | 1 -
 1 file changed, 1 deletion(-)
drivers/net/ethernet/broadcom/Kconfig +0 -1
index 7b79528d6eed..4bdf8fbe75a6 100644
@@ -174,7 +174,6 @@ config BGMAC_BCMA
 config BGMAC_PLATFORM
 	tristate "Broadcom iProc GBit platform support"
 	depends on ARCH_BCM_IPROC || COMPILE_TEST
-	depends on OF
 	select BGMAC
 	select PHYLIB
 	select FIXED_PHY
Signature · 1 line
~Randy
maintainer Applied
#2 lore raw
Quoted 9 lines · On Wed, 6 Jan 2021 11:27:29 -0800 Randy Dunlap wrote:
Quoted 2 lines · Florian Fainelli

All of the OF code that is used has stubbed and will compile and link just fine, keeping COMPILE_TEST is enough.

Yes, that matches my understanding.

I wish we had a list of which API families have full stub support...

Applied, thanks!