can: m_can: add .ndo_change_mtu function
authorDong Aisheng <b29396@freescale.com>
Wed, 29 Oct 2014 10:45:23 +0000 (18:45 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 18 Nov 2014 20:35:02 +0000 (21:35 +0100)
Use common can_change_mtu function.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c

index 10d571eaed856814928151da898bd2053d4d899c..e61886bf1bb3544908e47a879b35aed11f41709e 100644 (file)
@@ -992,6 +992,7 @@ static const struct net_device_ops m_can_netdev_ops = {
        .ndo_open = m_can_open,
        .ndo_stop = m_can_close,
        .ndo_start_xmit = m_can_start_xmit,
+       .ndo_change_mtu = can_change_mtu,
 };
 
 static int register_m_can_dev(struct net_device *dev)