Commit 1f1900f935e810d01c716fa2aaf8c9d25caa4151

Authored by Stephen Hemminger
Committed by David S. Miller
1 parent a0bffffc14

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -502,7 +502,7 @@
502 502 priv->lane2_ops = NULL;
503 503 if (priv->lane_version > 1)
504 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 506 printk("%s: change_mtu to %d failed\n", dev->name,
507 507 mesg->content.config.mtu);
508 508 priv->is_proxy = mesg->content.config.is_proxy;