aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/irda_device.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-03-20 19:35:33 +0000
committerDavid S. Miller <davem@davemloft.net>2009-03-21 19:19:14 -0700
commit92bcd4fe9a63e8785a4f6ba4262ee601c271a70b (patch)
treeb58daea58f31ee1c86dbe55b0a0a790420b1e4f8 /net/irda/irda_device.c
parentfe8114e8e1d15ba07ddcaebc4741957a1546f307 (diff)
downloadkernel_goldelico_gta04-92bcd4fe9a63e8785a4f6ba4262ee601c271a70b.zip
kernel_goldelico_gta04-92bcd4fe9a63e8785a4f6ba4262ee601c271a70b.tar.gz
kernel_goldelico_gta04-92bcd4fe9a63e8785a4f6ba4262ee601c271a70b.tar.bz2
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>
Diffstat (limited to 'net/irda/irda_device.c')
-rw-r--r--net/irda/irda_device.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/irda/irda_device.c b/net/irda/irda_device.c
index ea319e3..bf92e14 100644
--- a/net/irda/irda_device.c
+++ b/net/irda/irda_device.c
@@ -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;