aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>2011-08-12 02:06:28 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-12 02:06:28 -0400
commit5ff2241dd42ade03572753f9ed7743719b47c474 (patch)
tree3e4d2fbf7e4bbb7de3675800856572e93a67a703
parentaf3dcd2f449b7243a4c7b987125ffc40fad262f0 (diff)
spider_net: fix compile issue introduced by driver move
Both Spider net driver and Sun GEM driver use the sungem_phy.o object. This fix creates a Kconfig object for sungem_phy (like MDIO) so that both drivers require the SUNGEM_PHY object. This has been compile tested for the Sun GEM driver. Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/Kconfig4
-rw-r--r--drivers/net/Makefile2
-rw-r--r--drivers/net/ethernet/sun/Kconfig1
-rw-r--r--drivers/net/ethernet/sun/Makefile3
4 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index e6be7123f9ca..c8779c13af89 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -934,6 +934,7 @@ config SPIDER_NET
934 tristate "Spider Gigabit Ethernet driver" 934 tristate "Spider Gigabit Ethernet driver"
935 depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB) 935 depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB)
936 select FW_LOADER 936 select FW_LOADER
937 select SUNGEM_PHY
937 help 938 help
938 This driver supports the Gigabit Ethernet chips present on the 939 This driver supports the Gigabit Ethernet chips present on the
939 Cell Processor-Based Blades from IBM. 940 Cell Processor-Based Blades from IBM.
@@ -1083,6 +1084,9 @@ if NETDEV_10000
1083config MDIO 1084config MDIO
1084 tristate 1085 tristate
1085 1086
1087config SUNGEM_PHY
1088 tristate
1089
1086endif # NETDEV_10000 1090endif # NETDEV_10000
1087 1091
1088source "drivers/net/tokenring/Kconfig" 1092source "drivers/net/tokenring/Kconfig"
diff --git a/drivers/net/Makefile b/drivers/net/Makefile
index d15107598e6d..db888b0bcd5d 100644
--- a/drivers/net/Makefile
+++ b/drivers/net/Makefile
@@ -41,7 +41,7 @@ obj-$(CONFIG_R6040) += r6040.o
41obj-$(CONFIG_YELLOWFIN) += yellowfin.o 41obj-$(CONFIG_YELLOWFIN) += yellowfin.o
42obj-$(CONFIG_FEALNX) += fealnx.o 42obj-$(CONFIG_FEALNX) += fealnx.o
43spidernet-y += spider_net.o spider_net_ethtool.o 43spidernet-y += spider_net.o spider_net_ethtool.o
44obj-$(CONFIG_SPIDER_NET) += spidernet.o ethernet/sun/sungem_phy.o 44obj-$(CONFIG_SPIDER_NET) += spidernet.o
45obj-$(CONFIG_GELIC_NET) += ps3_gelic.o 45obj-$(CONFIG_GELIC_NET) += ps3_gelic.o
46gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o 46gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o
47ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y) 47ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y)
diff --git a/drivers/net/ethernet/sun/Kconfig b/drivers/net/ethernet/sun/Kconfig
index 87b17a7e6dfe..5132fa69047a 100644
--- a/drivers/net/ethernet/sun/Kconfig
+++ b/drivers/net/ethernet/sun/Kconfig
@@ -57,6 +57,7 @@ config SUNGEM
57 tristate "Sun GEM support" 57 tristate "Sun GEM support"
58 depends on PCI 58 depends on PCI
59 select CRC32 59 select CRC32
60 select SUNGEM_PHY
60 ---help--- 61 ---help---
61 Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0. See also 62 Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0. See also
62 <http://www.sun.com/products-n-solutions/hardware/docs/pdf/806-3985-10.pdf>. 63 <http://www.sun.com/products-n-solutions/hardware/docs/pdf/806-3985-10.pdf>.
diff --git a/drivers/net/ethernet/sun/Makefile b/drivers/net/ethernet/sun/Makefile
index 4f25217a75f8..6e25dad6070e 100644
--- a/drivers/net/ethernet/sun/Makefile
+++ b/drivers/net/ethernet/sun/Makefile
@@ -5,7 +5,8 @@
5obj-$(CONFIG_HAPPYMEAL) += sunhme.o 5obj-$(CONFIG_HAPPYMEAL) += sunhme.o
6obj-$(CONFIG_SUNQE) += sunqe.o 6obj-$(CONFIG_SUNQE) += sunqe.o
7obj-$(CONFIG_SUNBMAC) += sunbmac.o 7obj-$(CONFIG_SUNBMAC) += sunbmac.o
8obj-$(CONFIG_SUNGEM) += sungem.o sungem_phy.o 8obj-$(CONFIG_SUNGEM) += sungem.o
9obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
9obj-$(CONFIG_CASSINI) += cassini.o 10obj-$(CONFIG_CASSINI) += cassini.o
10obj-$(CONFIG_SUNVNET) += sunvnet.o 11obj-$(CONFIG_SUNVNET) += sunvnet.o
11obj-$(CONFIG_NIU) += niu.o 12obj-$(CONFIG_NIU) += niu.o