]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
atm: lec use dev_change_mtu
authorStephen Hemminger <shemminger@vyatta.com>
Sat, 21 Mar 2009 20:37:28 +0000 (13:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Mar 2009 20:37:28 +0000 (13:37 -0700)
Rather than calling device pointer directly (which is incorrect with
net_device_ops), use the standard dev_change_mtu. Compile tested only.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/atm/lec.c

index c0cba9a037e842d92ac7116907b21c950b001b2d..199b6bb79f429aadeaf6a26ad6c3b65d200d1644 100644 (file)
@@ -502,7 +502,7 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb)
                priv->lane2_ops = NULL;
                if (priv->lane_version > 1)
                        priv->lane2_ops = &lane2_ops;
-               if (dev->change_mtu(dev, mesg->content.config.mtu))
+               if (dev_set_mtu(dev, mesg->content.config.mtu))
                        printk("%s: change_mtu to %d failed\n", dev->name,
                               mesg->content.config.mtu);
                priv->is_proxy = mesg->content.config.is_proxy;