Commit 5ff2241d authored by Jeff Kirsher's avatar Jeff Kirsher Committed by David S. Miller

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: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent af3dcd2f
...@@ -934,6 +934,7 @@ config SPIDER_NET ...@@ -934,6 +934,7 @@ config SPIDER_NET
tristate "Spider Gigabit Ethernet driver" tristate "Spider Gigabit Ethernet driver"
depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB) depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB)
select FW_LOADER select FW_LOADER
select SUNGEM_PHY
help help
This driver supports the Gigabit Ethernet chips present on the This driver supports the Gigabit Ethernet chips present on the
Cell Processor-Based Blades from IBM. Cell Processor-Based Blades from IBM.
...@@ -1083,6 +1084,9 @@ if NETDEV_10000 ...@@ -1083,6 +1084,9 @@ if NETDEV_10000
config MDIO config MDIO
tristate tristate
config SUNGEM_PHY
tristate
endif # NETDEV_10000 endif # NETDEV_10000
source "drivers/net/tokenring/Kconfig" source "drivers/net/tokenring/Kconfig"
......
...@@ -41,7 +41,7 @@ obj-$(CONFIG_R6040) += r6040.o ...@@ -41,7 +41,7 @@ obj-$(CONFIG_R6040) += r6040.o
obj-$(CONFIG_YELLOWFIN) += yellowfin.o obj-$(CONFIG_YELLOWFIN) += yellowfin.o
obj-$(CONFIG_FEALNX) += fealnx.o obj-$(CONFIG_FEALNX) += fealnx.o
spidernet-y += spider_net.o spider_net_ethtool.o spidernet-y += spider_net.o spider_net_ethtool.o
obj-$(CONFIG_SPIDER_NET) += spidernet.o ethernet/sun/sungem_phy.o obj-$(CONFIG_SPIDER_NET) += spidernet.o
obj-$(CONFIG_GELIC_NET) += ps3_gelic.o obj-$(CONFIG_GELIC_NET) += ps3_gelic.o
gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o
ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y) ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y)
......
...@@ -57,6 +57,7 @@ config SUNGEM ...@@ -57,6 +57,7 @@ config SUNGEM
tristate "Sun GEM support" tristate "Sun GEM support"
depends on PCI depends on PCI
select CRC32 select CRC32
select SUNGEM_PHY
---help--- ---help---
Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0. See also Support for the Sun GEM chip, aka Sun GigabitEthernet/P 2.0. See also
<http://www.sun.com/products-n-solutions/hardware/docs/pdf/806-3985-10.pdf>. <http://www.sun.com/products-n-solutions/hardware/docs/pdf/806-3985-10.pdf>.
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
obj-$(CONFIG_HAPPYMEAL) += sunhme.o obj-$(CONFIG_HAPPYMEAL) += sunhme.o
obj-$(CONFIG_SUNQE) += sunqe.o obj-$(CONFIG_SUNQE) += sunqe.o
obj-$(CONFIG_SUNBMAC) += sunbmac.o obj-$(CONFIG_SUNBMAC) += sunbmac.o
obj-$(CONFIG_SUNGEM) += sungem.o sungem_phy.o obj-$(CONFIG_SUNGEM) += sungem.o
obj-$(CONFIG_SUNGEM_PHY) += sungem_phy.o
obj-$(CONFIG_CASSINI) += cassini.o obj-$(CONFIG_CASSINI) += cassini.o
obj-$(CONFIG_SUNVNET) += sunvnet.o obj-$(CONFIG_SUNVNET) += sunvnet.o
obj-$(CONFIG_NIU) += niu.o obj-$(CONFIG_NIU) += niu.o
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment