From patchwork Wed Oct 29 10:45:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dong Aisheng X-Patchwork-Id: 404551 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 66C0D140081 for ; Wed, 29 Oct 2014 23:06:50 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932657AbaJ2MGp (ORCPT ); Wed, 29 Oct 2014 08:06:45 -0400 Received: from mail-bl2on0123.outbound.protection.outlook.com ([65.55.169.123]:64382 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932514AbaJ2MGo (ORCPT ); Wed, 29 Oct 2014 08:06:44 -0400 X-Greylist: delayed 905 seconds by postgrey-1.27 at vger.kernel.org; Wed, 29 Oct 2014 08:06:44 EDT Received: from DM2PR03CA0035.namprd03.prod.outlook.com (10.141.96.34) by DM2PR03MB335.namprd03.prod.outlook.com (10.141.54.20) with Microsoft SMTP Server (TLS) id 15.1.11.9; Wed, 29 Oct 2014 11:51:37 +0000 Received: from BL2FFO11FD040.protection.gbl (2a01:111:f400:7c09::112) by DM2PR03CA0035.outlook.office365.com (2a01:111:e400:2428::34) with Microsoft SMTP Server (TLS) id 15.1.6.9 via Frontend Transport; Wed, 29 Oct 2014 11:51:37 +0000 Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD040.mail.protection.outlook.com (10.173.161.136) with Microsoft SMTP Server (TLS) id 15.0.1049.20 via Frontend Transport; Wed, 29 Oct 2014 11:51:36 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id s9TBpOFM024329; Wed, 29 Oct 2014 04:51:34 -0700 From: Dong Aisheng To: CC: , , , , , , Subject: [PATCH 3/7] can: m_can: add .ndo_change_mtu function Date: Wed, 29 Oct 2014 18:45:23 +0800 Message-ID: <1414579527-31100-3-git-send-email-b29396@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1414579527-31100-1-git-send-email-b29396@freescale.com> References: <1414579527-31100-1-git-send-email-b29396@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:CAL; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(62966002)(77156001)(92566001)(50986999)(105606002)(229853001)(89996001)(106466001)(20776003)(47776003)(88136002)(50466002)(36756003)(85852003)(64706001)(87936001)(95666004)(4396001)(48376002)(93916002)(31966008)(92726001)(87286001)(2351001)(99396003)(76176999)(107046002)(50226001)(21056001)(120916001)(97736003)(33646002)(68736004)(85306004)(19580405001)(19580395003)(76482002)(44976005)(6806004)(110136001)(102836001)(104016003)(80022003)(26826002)(104166001)(46102003)(84676001)(142923001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR03MB335; H:tx30smr01.am.freescale.net; FPR:; MLV:ovrnspm; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:DM2PR03MB335; X-Forefront-PRVS: 03793408BA Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=Aisheng.Dong@freescale.com; X-OriginatorOrg: freescale.com Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Use common can_change_mtu function. Signed-off-by: Dong Aisheng --- drivers/net/can/m_can/m_can.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/can/m_can/m_can.c b/drivers/net/can/m_can/m_can.c index 2784423..e4ef146 100644 --- a/drivers/net/can/m_can/m_can.c +++ b/drivers/net/can/m_can/m_can.c @@ -1002,6 +1002,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)