From: Stephen Hemminger Date: Sat, 21 Mar 2009 20:37:28 +0000 (-0700) Subject: atm: lec use dev_change_mtu X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1f1900f935e810d01c716fa2aaf8c9d25caa4151;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- diff --git a/net/atm/lec.c b/net/atm/lec.c index c0cba9a037e..199b6bb79f4 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) 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;