netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] netdev: mv643xx_eth: Prevent build on PPC32
@ 2012-06-05 19:28 Josh Boyer
  2012-06-05 23:30 ` Ben Hutchings
  2012-06-06  0:49 ` Lennert Buytenhek
  0 siblings, 2 replies; 13+ messages in thread
From: Josh Boyer @ 2012-06-05 19:28 UTC (permalink / raw)
  To: Lennert Buytenhek; +Cc: Andrew Lunn, Olof Johansson, netdev

Commit 452503ebc (ARM: Orion: Eth: Add clk/clkdev support.) added use of
the clk driver API which results in compile errors on architectures that
don't implement the clk API.

ERROR: "clk_enable" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined!
ERROR: "clk_disable" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined!
ERROR: "clk_put" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined!
ERROR: "clk_get_rate" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined!
ERROR: "clk_get" [drivers/net/ethernet/marvell/mv643xx_eth.ko] undefined!

Selecting CLKDEV_LOOKUP doesn't fix this either, as the build then fails with:

In file included from drivers/clk/clkdev.c:21:0:
include/linux/clkdev.h:15:24: fatal error: asm/clkdev.h: No such file or directory

So we just prevent this from building at all on PPC32.

Signed-off-by: Josh Boyer <jwboyer@redhat.com>
---
 drivers/net/ethernet/marvell/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/marvell/Kconfig b/drivers/net/ethernet/marvell/Kconfig
index 0029934..628f5b1 100644
--- a/drivers/net/ethernet/marvell/Kconfig
+++ b/drivers/net/ethernet/marvell/Kconfig
@@ -20,7 +20,7 @@ if NET_VENDOR_MARVELL
 
 config MV643XX_ETH
 	tristate "Marvell Discovery (643XX) and Orion ethernet support"
-	depends on (MV64X60 || PPC32 || PLAT_ORION) && INET
+	depends on (MV64X60 || PLAT_ORION) && INET
 	select INET_LRO
 	select PHYLIB
 	---help---
-- 
1.7.10.2

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

end of thread, other threads:[~2012-06-09  4:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-05 19:28 [PATCH] netdev: mv643xx_eth: Prevent build on PPC32 Josh Boyer
2012-06-05 23:30 ` Ben Hutchings
2012-06-06  2:38   ` Josh Boyer
2012-06-06  5:29     ` Andrew Lunn
2012-06-06 11:21       ` Josh Boyer
2012-06-07 23:51     ` Mark Brown
2012-06-07 23:55       ` Josh Boyer
2012-06-08  0:34         ` Mark Brown
2012-06-08  1:04           ` Josh Boyer
2012-06-09  4:01             ` Mark Brown
2012-06-06  0:49 ` Lennert Buytenhek
2012-06-06  2:40   ` Josh Boyer
2012-06-06  3:02     ` Lennert Buytenhek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).