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(-)
--
2.4.3
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.
Signed-off-by: Antonio Borneo <[email protected]>
---
drivers/clocksource/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig
index 51d7865f..d7410c2 100644
--- a/drivers/clocksource/Kconfig
+++ b/drivers/clocksource/Kconfig
@@ -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.
--
2.4.3
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_???.
Signed-off-by: Antonio Borneo <[email protected]>
---
drivers/net/ethernet/via/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/via/Kconfig b/drivers/net/ethernet/via/Kconfig
index f66ddae..ad7f512 100644
--- a/drivers/net/ethernet/via/Kconfig
+++ b/drivers/net/ethernet/via/Kconfig
@@ -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
--
2.4.3
From: Antonio Borneo <[email protected]>
Date: Wed, 17 Jun 2015 19:42:31 +0800
> 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_???.
>
> Signed-off-by: Antonio Borneo <[email protected]>
Applied to net-next, thanks.
On 06/17/2015 01:42 PM, Antonio Borneo wrote:
> 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.
>
> Signed-off-by: Antonio Borneo <[email protected]>
> ---
Applied for 4.3
Thanks !
-- Daniel
--
<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