spider_net: fix compile issue introduced by driver move
authorJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 12 Aug 2011 06:06:28 +0000 (23:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Aug 2011 06:06:28 +0000 (23:06 -0700)
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>
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/ethernet/sun/Kconfig
drivers/net/ethernet/sun/Makefile

index e6be7123f9ca2a17dc4c3afcd2a99441936114e1..c8779c13af8994fa9fb0ce2e57c673873e5dbcb5 100644 (file)
@@ -934,6 +934,7 @@ config SPIDER_NET
        tristate "Spider Gigabit Ethernet driver"
        depends on PCI && (PPC_IBM_CELL_BLADE || PPC_CELLEB)
        select FW_LOADER
+       select SUNGEM_PHY
        help
          This driver supports the Gigabit Ethernet chips present on the
          Cell Processor-Based Blades from IBM.
@@ -1083,6 +1084,9 @@ if NETDEV_10000
 config MDIO
        tristate
 
+config SUNGEM_PHY
+       tristate
+
 endif # NETDEV_10000
 
 source "drivers/net/tokenring/Kconfig"
index d15107598e6d0f449b8738696b2d5a716ea17858..db888b0bcd5dda66d4ecb7b6eed9b24b147694f9 100644 (file)
@@ -41,7 +41,7 @@ obj-$(CONFIG_R6040) += r6040.o
 obj-$(CONFIG_YELLOWFIN) += yellowfin.o
 obj-$(CONFIG_FEALNX) += fealnx.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
 gelic_wireless-$(CONFIG_GELIC_WIRELESS) += ps3_gelic_wireless.o
 ps3_gelic-objs += ps3_gelic_net.o $(gelic_wireless-y)
index 87b17a7e6dfec92947b64c2d1b7e9d3dabc69a11..5132fa69047a3d29327fca2975054bdea8aaf9ee 100644 (file)
@@ -57,6 +57,7 @@ config SUNGEM
        tristate "Sun GEM support"
        depends on PCI
        select CRC32
+       select SUNGEM_PHY
        ---help---
          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>.
index 4f25217a75f89ac7bed3b7df30866d14383d81ee..6e25dad6070ea5d513019653ecb9de1b3fe79131 100644 (file)
@@ -5,7 +5,8 @@
 obj-$(CONFIG_HAPPYMEAL) += sunhme.o
 obj-$(CONFIG_SUNQE) += sunqe.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_SUNVNET) += sunvnet.o
 obj-$(CONFIG_NIU) += niu.o