rndis_wlan: fix backport of netdev_attach_ops() usage
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 5 May 2010 00:00:00 +0000 (17:00 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Wed, 5 May 2010 00:00:00 +0000 (17:00 -0700)
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
patches/01-netdev.patch

index fde97050678469632854ba16dc5a5fe5983a00b4..a607a398c72846fd452cc8c6a187b30050b581f3 100644 (file)
@@ -13,7 +13,7 @@ without creating a headache on maintenance of the pathes.
        u.init->max_transfer_size = cpu_to_le32(dev->rx_urb_size);
  
 -      net->netdev_ops = &rndis_netdev_ops;
-+      netdev_attach_ops(dev, &&rndis_netdev_ops);
++      netdev_attach_ops(net, &rndis_netdev_ops);
 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,29))
 +      /* can't we remove this? */
 +      net->change_mtu = NULL;