net: dsa: remove PHY device argument from .set_eee
[linux-2.6-microblaze.git] / include / net / dsa.h
index 58969b9..ce46db3 100644 (file)
@@ -256,11 +256,6 @@ static inline bool dsa_is_normal_port(struct dsa_switch *ds, int p)
        return !dsa_is_cpu_port(ds, p) && !dsa_is_dsa_port(ds, p);
 }
 
-static inline bool dsa_is_port_initialized(struct dsa_switch *ds, int p)
-{
-       return ds->enabled_port_mask & (1 << p) && ds->ports[p].netdev;
-}
-
 static inline u8 dsa_upstream_port(struct dsa_switch *ds)
 {
        struct dsa_switch_tree *dst = ds->dst;
@@ -340,7 +335,6 @@ struct dsa_switch_ops {
         * EEE setttings
         */
        int     (*set_eee)(struct dsa_switch *ds, int port,
-                          struct phy_device *phydev,
                           struct ethtool_eee *e);
        int     (*get_eee)(struct dsa_switch *ds, int port,
                           struct ethtool_eee *e);