summaryrefslogtreecommitdiffstats
path: root/drivers/staging/et131x/et1310_phy.c
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2011-09-04 11:24:42 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-06 16:54:58 -0700
commitcd9bb52bfadf31ca51a5b67d967ec06061ac4b04 (patch)
tree9e5e58055e251b6592ebe72f50a1a1ff42f765a2 /drivers/staging/et131x/et1310_phy.c
parentb84981c80847999c23a87b9e6810978ccf14f14e (diff)
downloadop-kernel-dev-cd9bb52bfadf31ca51a5b67d967ec06061ac4b04.zip
op-kernel-dev-cd9bb52bfadf31ca51a5b67d967ec06061ac4b04.tar.gz
staging: et131x: Remove ai_force_[duplex|speed] from et131x_adapter
The ai_force settings were used to set the ethernet speed and duplex manually. This is now being done by the phy_device, so remove. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/et131x/et1310_phy.c')
-rw-r--r--drivers/staging/et131x/et1310_phy.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/et131x/et1310_phy.c b/drivers/staging/et131x/et1310_phy.c
index 3c82f44..c4bc41d 100644
--- a/drivers/staging/et131x/et1310_phy.c
+++ b/drivers/staging/et131x/et1310_phy.c
@@ -498,10 +498,8 @@ void et131x_mii_check(struct et131x_adapter *adapter,
}
}
- if ((bmsr_ints & BMSR_ANEGCOMPLETE) ||
- (adapter->ai_force_duplex == 3 && (bmsr_ints & BMSR_LSTATUS))) {
- if ((bmsr & BMSR_ANEGCOMPLETE) ||
- adapter->ai_force_duplex == 3) {
+ if (bmsr_ints & BMSR_ANEGCOMPLETE) {
+ if (bmsr & BMSR_ANEGCOMPLETE) {
et1310_phy_link_status(adapter,
&link_status, &autoneg_status,
&speed, &duplex, &mdi_mdix,
OpenPOWER on IntegriCloud