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 a2354f9..bc4288f 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;