staging: et131x: Remove private adapter->linkspeed and use phydev->speed instead
authorMark Einon <mark.einon@gmail.com>
Sun, 4 Sep 2011 10:24:32 +0000 (11:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:54:53 +0000 (16:54 -0700)
commit412f8e0c52b126c6f54d0626a9dede9438d76c03
tree6a9f76a432d3d9fba883b8e2dc3cfdea3319eda2
parent740b7a2cb18206374aabe38c0ec1f1344214ac97
staging: et131x: Remove private adapter->linkspeed and use phydev->speed instead

The phy device keeps a note of the link speed, so use that value instead of the driver private one.

Also use the phydev defines for link speeds, and remove the driver private ones.

adapter->hw_errs was never used, even in the vendor driver, so remove that too.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et1310_mac.c
drivers/staging/et131x/et1310_phy.c
drivers/staging/et131x/et1310_phy.h
drivers/staging/et131x/et1310_rx.c
drivers/staging/et131x/et1310_tx.c
drivers/staging/et131x/et131x_adapter.h
drivers/staging/et131x/et131x_initpci.c