compat: add support for ndo_init backport
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 31 Aug 2010 01:54:31 +0000 (18:54 -0700)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 31 Aug 2010 01:54:31 +0000 (18:54 -0700)
ath6kl uses this.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
compat/compat-2.6.29.c

index a2354f9b445647d142cbd708404a261af6fa1873..bc4288f4469f66b71eb5de6394a911282d9d19be 100644 (file)
@@ -25,6 +25,7 @@ void netdev_attach_ops(struct net_device *dev,
                       const struct net_device_ops *ops)
 {
        dev->open = ops->ndo_open;
+       dev->init = ops->ndo_init;
        dev->stop = ops->ndo_stop;
        dev->hard_start_xmit = ops->ndo_start_xmit;
        dev->change_rx_flags = ops->ndo_change_rx_flags;