diff options
author | David Daney <ddaney@caviumnetworks.com> | 2009-10-14 15:04:42 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-12-16 20:57:00 -0500 |
commit | f6ed1b3b3579db5c8c3aaf6fd3010c706973a35d (patch) | |
tree | 82957dab3ed4653fe83236fa839fe639294672ff /drivers/staging/octeon/ethernet-sgmii.c | |
parent | d6aa60a10b2f5068e331ca2936b1e6c248ae37c1 (diff) |
Staging: octeon-ethernet: Convert to use PHY Abstraction Layer.
The octeon-ethernet driver shares an mdio bus with the octeon-mgmt
driver. Here we convert the octeon-ethernet driver to use the PHY
Abstraction Layer.
Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers/staging/octeon/ethernet-sgmii.c')
-rw-r--r-- | drivers/staging/octeon/ethernet-sgmii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/octeon/ethernet-sgmii.c b/drivers/staging/octeon/ethernet-sgmii.c index 2b54996bd85..6061d01eca2 100644 --- a/drivers/staging/octeon/ethernet-sgmii.c +++ b/drivers/staging/octeon/ethernet-sgmii.c | |||
@@ -113,7 +113,7 @@ int cvm_oct_sgmii_init(struct net_device *dev) | |||
113 | struct octeon_ethernet *priv = netdev_priv(dev); | 113 | struct octeon_ethernet *priv = netdev_priv(dev); |
114 | cvm_oct_common_init(dev); | 114 | cvm_oct_common_init(dev); |
115 | dev->netdev_ops->ndo_stop(dev); | 115 | dev->netdev_ops->ndo_stop(dev); |
116 | if (!octeon_is_simulation()) | 116 | if (!octeon_is_simulation() && priv->phydev == NULL) |
117 | priv->poll = cvm_oct_sgmii_poll; | 117 | priv->poll = cvm_oct_sgmii_poll; |
118 | 118 | ||
119 | /* FIXME: Need autoneg logic */ | 119 | /* FIXME: Need autoneg logic */ |