mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
irda: net_device_ops ioctl fix
Need to reference net_device_ops not old pointer. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
fe8114e8e1
commit
92bcd4fe9a
1 changed files with 3 additions and 2 deletions
|
@ -149,13 +149,14 @@ int irda_device_is_receiving(struct net_device *dev)
|
|||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__);
|
||||
|
||||
if (!dev->do_ioctl) {
|
||||
if (!dev->netdev_ops->ndo_do_ioctl) {
|
||||
IRDA_ERROR("%s: do_ioctl not impl. by device driver\n",
|
||||
__func__);
|
||||
return -1;
|
||||
}
|
||||
|
||||
ret = dev->do_ioctl(dev, (struct ifreq *) &req, SIOCGRECEIVING);
|
||||
ret = (dev->netdev_ops->ndo_do_ioctl)(dev, (struct ifreq *) &req,
|
||||
SIOCGRECEIVING);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
|
|
Loading…
Reference in a new issue