irda: net_device_ops ioctl fix
authorStephen Hemminger <shemminger@vyatta.com>
Fri, 20 Mar 2009 19:35:33 +0000 (19:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Mar 2009 02:19:14 +0000 (19:19 -0700)
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>
net/irda/irda_device.c

index ea319e3ddc18c77a441d1093bc1b9bdac615f931..bf92e147344736bd39a4fce6b3977bc5c8ee1739 100644 (file)
@@ -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;