diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-21 16:37:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-21 16:37:28 -0400 |
commit | 1f1900f935e810d01c716fa2aaf8c9d25caa4151 (patch) | |
tree | 7ee3fada9c65629b8fe85f5b3009fa084de19d27 /net/atm | |
parent | a0bffffc148cd8e75a48a89ad2ddb74e4081a20a (diff) |
atm: lec use dev_change_mtu
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>
Diffstat (limited to 'net/atm')
-rw-r--r-- | net/atm/lec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c index c0cba9a037e8..199b6bb79f42 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c | |||
@@ -502,7 +502,7 @@ static int lec_atm_send(struct atm_vcc *vcc, struct sk_buff *skb) | |||
502 | priv->lane2_ops = NULL; | 502 | priv->lane2_ops = NULL; |
503 | if (priv->lane_version > 1) | 503 | if (priv->lane_version > 1) |
504 | priv->lane2_ops = &lane2_ops; | 504 | priv->lane2_ops = &lane2_ops; |
505 | if (dev->change_mtu(dev, mesg->content.config.mtu)) | 505 | if (dev_set_mtu(dev, mesg->content.config.mtu)) |
506 | printk("%s: change_mtu to %d failed\n", dev->name, | 506 | printk("%s: change_mtu to %d failed\n", dev->name, |
507 | mesg->content.config.mtu); | 507 | mesg->content.config.mtu); |
508 | priv->is_proxy = mesg->content.config.is_proxy; | 508 | priv->is_proxy = mesg->content.config.is_proxy; |