ethtool: remove phys_id from ethtool_ops
After that all the upstream kernel drivers now use phys_id, and the old ethtool_ops interface (phys_id) can be removed. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
534eacb5d4
commit
1ab7b6ac27
@@ -1655,7 +1655,7 @@ static int ethtool_phys_id(struct net_device *dev, void __user *useraddr)
|
||||
static bool busy;
|
||||
int rc;
|
||||
|
||||
if (!dev->ethtool_ops->set_phys_id && !dev->ethtool_ops->phys_id)
|
||||
if (!dev->ethtool_ops->set_phys_id)
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
if (busy)
|
||||
@@ -1664,10 +1664,6 @@ static int ethtool_phys_id(struct net_device *dev, void __user *useraddr)
|
||||
if (copy_from_user(&id, useraddr, sizeof(id)))
|
||||
return -EFAULT;
|
||||
|
||||
if (!dev->ethtool_ops->set_phys_id)
|
||||
/* Do it the old way */
|
||||
return dev->ethtool_ops->phys_id(dev, id.data);
|
||||
|
||||
rc = dev->ethtool_ops->set_phys_id(dev, ETHTOOL_ID_ACTIVE);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user