Skip to contentSkip to conversation

replace USE_OF in drivers

PATCH Applied Antonio Borneo 3 participants 5 messages Jun 17, 2015 – Jun 29, 2015

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

cover replace USE_OF in drivers

Kconfig option USE_OF is used as intermediate option by few arch's (ARM, MIPS, Xtensa); in all these cases USE_OF implies setting option OF and other OF_???.

Outside arch folder, USE_OF is used only in two places. In both places, USE_OF can be replaced by OF or OF_???. This change reduces the scope of USE_OF and makes the drivers (actually only the Via network ones) available to other arch's that don't use USE_OF.

The two patches of this series can be applied independently and can be taken separately in the respective tree.

Antonio Borneo (2):
clocksource: Kconfig: replace USE_OF with OF
net: via/Kconfig: replace USE_OF with OF_???

 drivers/clocksource/Kconfig      | 2 +-
 drivers/net/ethernet/via/Kconfig | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.4.3
#3 lore raw

PATCH 2/2 net: via/Kconfig: replace USE_OF with OF_???

USE_OF is used as intermediate Kconfig option by few arch's (ARM, MIPS, Xtensa).
Replace instances of USE_OF outside of arch folders with proper OF_???.

---

 drivers/net/ethernet/via/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/via/Kconfig +2 -2
index f66ddae..ad7f512 100644
@@ -19,7 +19,7 @@ if NET_VENDOR_VIA
 
 config VIA_RHINE
 	tristate "VIA Rhine support"
-	depends on (PCI || USE_OF)
+	depends on (PCI || OF_IRQ)
 	select CRC32
 	select MII
 	---help---
@@ -43,7 +43,7 @@ config VIA_RHINE_MMIO
 
 config VIA_VELOCITY
 	tristate "VIA Velocity support"
-	depends on (PCI || USE_OF)
+	depends on (PCI || (OF_ADDRESS && OF_IRQ))
 	select CRC32
 	select CRC_CCITT
 	select MII
Signature · 1 line
2.4.3
#1 lore raw

PATCH 1/2 clocksource: Kconfig: replace USE_OF with OF

In reply to Antonio Borneo

USE_OF is used as intermediate Kconfig option by few arch's (ARM, MIPS, Xtensa); in all these cases it implies setting option OF too.
Replace the only instance of USE_OF in clocksource with OF.

---

 drivers/clocksource/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/Kconfig +1 -1
index 51d7865f..d7410c2 100644
@@ -254,7 +254,7 @@ config CLKSRC_MIPS_GIC
 
 config CLKSRC_PXA
 	def_bool y if ARCH_PXA || ARCH_SA1100
-	select CLKSRC_OF if USE_OF
+	select CLKSRC_OF if OF
 	help
 	  This enables OST0 support available on PXA and SA-11x0
 	  platforms.
Signature · 1 line
2.4.3
#2 lore raw

Re: [PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF

In reply to Antonio Borneo
Quoted 8 lines · Antonio Borneo

USE_OF is used as intermediate Kconfig option by few arch's (ARM, MIPS, Xtensa); in all these cases it implies setting option OF too.
Replace the only instance of USE_OF in clocksource with OF.

---

Applied for 4.3

Thanks !

-- Daniel

Signature · 5 lines
 <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog