mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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:
parent
534eacb5d4
commit
1ab7b6ac27
2 changed files with 1 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue