All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] replace USE_OF in drivers
@ 2015-06-17 11:42 Antonio Borneo
  2015-06-17 11:42 ` [PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF Antonio Borneo
  2015-06-17 11:42 ` [PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_??? Antonio Borneo
  0 siblings, 2 replies; 6+ messages in thread
From: Antonio Borneo @ 2015-06-17 11:42 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, Francois Romieu,
	David S. Miller, netdev, linux-kernel
  Cc: Antonio Borneo

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF
  2015-06-17 11:42 [PATCH 0/2] replace USE_OF in drivers Antonio Borneo
@ 2015-06-17 11:42 ` Antonio Borneo
  2015-06-29  9:01   ` Daniel Lezcano
  2015-06-17 11:42 ` [PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_??? Antonio Borneo
  1 sibling, 1 reply; 6+ messages in thread
From: Antonio Borneo @ 2015-06-17 11:42 UTC (permalink / raw)
  To: Daniel Lezcano, Thomas Gleixner, linux-kernel
  Cc: Antonio Borneo, Francois Romieu, David S. Miller, netdev

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 <borneo.antonio@gmail.com>
---

 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_???
  2015-06-17 11:42 [PATCH 0/2] replace USE_OF in drivers Antonio Borneo
  2015-06-17 11:42 ` [PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF Antonio Borneo
@ 2015-06-17 11:42 ` Antonio Borneo
  2015-06-21 17:05     ` David Miller
  1 sibling, 1 reply; 6+ messages in thread
From: Antonio Borneo @ 2015-06-17 11:42 UTC (permalink / raw)
  To: Francois Romieu, David S. Miller, netdev, linux-kernel
  Cc: Antonio Borneo, Daniel Lezcano, Thomas Gleixner

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 <borneo.antonio@gmail.com>
---

 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_???
  2015-06-17 11:42 ` [PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_??? Antonio Borneo
@ 2015-06-21 17:05     ` David Miller
  0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2015-06-21 17:05 UTC (permalink / raw)
  To: borneo.antonio; +Cc: romieu, netdev, linux-kernel, daniel.lezcano, tglx

From: Antonio Borneo <borneo.antonio@gmail.com>
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 <borneo.antonio@gmail.com>

Applied to net-next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_???
@ 2015-06-21 17:05     ` David Miller
  0 siblings, 0 replies; 6+ messages in thread
From: David Miller @ 2015-06-21 17:05 UTC (permalink / raw)
  To: borneo.antonio; +Cc: romieu, netdev, linux-kernel, daniel.lezcano, tglx

From: Antonio Borneo <borneo.antonio@gmail.com>
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 <borneo.antonio@gmail.com>

Applied to net-next, thanks.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF
  2015-06-17 11:42 ` [PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF Antonio Borneo
@ 2015-06-29  9:01   ` Daniel Lezcano
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Lezcano @ 2015-06-29  9:01 UTC (permalink / raw)
  To: Antonio Borneo, Thomas Gleixner, linux-kernel
  Cc: Francois Romieu, David S. Miller, netdev

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 <borneo.antonio@gmail.com>
> ---

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-29  9:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-17 11:42 [PATCH 0/2] replace USE_OF in drivers Antonio Borneo
2015-06-17 11:42 ` [PATCH 1/2] clocksource: Kconfig: replace USE_OF with OF Antonio Borneo
2015-06-29  9:01   ` Daniel Lezcano
2015-06-17 11:42 ` [PATCH 2/2] net: via/Kconfig: replace USE_OF with OF_??? Antonio Borneo
2015-06-21 17:05   ` David Miller
2015-06-21 17:05     ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.