cxgb3: simplify port type struct and usage
[linux-3.10.git] / drivers / net / cxgb3 / vsc8211.c
index eee4285b31be580530f52726bd4cb1d9ed9c62c9..68e6334c206a99580e6fe805b3bb464f74c5272b 100644 (file)
@@ -221,8 +221,12 @@ static struct cphy_ops vsc8211_ops = {
        .power_down = vsc8211_power_down,
 };
 
-void t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter,
-                        int phy_addr, const struct mdio_ops *mdio_ops)
+int t3_vsc8211_phy_prep(struct cphy *phy, struct adapter *adapter,
+                       int phy_addr, const struct mdio_ops *mdio_ops)
 {
-       cphy_init(phy, adapter, phy_addr, &vsc8211_ops, mdio_ops);
+       cphy_init(phy, adapter, phy_addr, &vsc8211_ops, mdio_ops,
+                 SUPPORTED_10baseT_Full | SUPPORTED_100baseT_Full |
+                 SUPPORTED_1000baseT_Full | SUPPORTED_Autoneg | SUPPORTED_MII |
+                 SUPPORTED_TP | SUPPORTED_IRQ, "10/100/1000BASE-T");
+       return 0;
 }