replace USE_OF in drivers
Subsystems (3)
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
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
@@ -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
PATCH 1/2 clocksource: Kconfig: replace USE_OF with OF
In reply to Antonio BorneoUSE_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
@@ -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
Re: [PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_???
In reply to Antonio BorneoFrom: Antonio Borneo <[email protected]>
Date: Wed, 17 Jun 2015 19:42:31 +0800
Quoted 6 lines
USE_OFis used as intermediateKconfigoption by few arch's (ARM, MIPS, Xtensa).
Replace instances ofUSE_OFoutside of arch folders with properOF_???.Signed-off-by Antonio Borneo <[email protected]>
Applied to net-next, thanks.
Re: [PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF
In reply to Antonio BorneoQuoted 8 lines · Antonio Borneo
USE_OFis used as intermediateKconfigoption by few arch's (ARM, MIPS, Xtensa); in all these cases it implies setting option OF too.
Replace the only instance ofUSE_OFin clocksource with OF.Signed-off-by Antonio Borneo <[email protected]>---
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