Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6627512rwi; Mon, 24 Oct 2022 04:11:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SMD9T7GQSX7rZZXfld0pjX7vJ5NJ4V1JDN7a96jfi5PZVYt1Wv2nmMBB/pok38GGDIxSw X-Received: by 2002:a17:902:db12:b0:186:ba4b:a4af with SMTP id m18-20020a170902db1200b00186ba4ba4afmr149385plx.13.1666609915807; Mon, 24 Oct 2022 04:11:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666609915; cv=none; d=google.com; s=arc-20160816; b=WmiAiAKaK0Yq8oqIpjG6LF/h6LnTUG7l6wPlf75NxXQqTVPn4pRdGNsF4IYWKNQAEG 7Bh13gQM6uaBQUdC4fWIdsDjTxN89md3o69+pxvrmIjrwoVnAdEA+V8qTZOUnLzAwTtT sqraYzyTjQvhXZSGogzCZSzUtcN61RoZnxZi578TKw7+JanPpf7AJmKyeXFO90O4OAgx jUoMiR5O+qiVUU6yNl9i/ifak/3ArR4cmy51vKm02nnUQC32wl/SZZwXI6MgBdpQV8+p XajhzgUnpeW3kuOiIAAQDmFL24XpxJCPRzVUMa5zQOU56h3RP7WK3R0C4f8ApoqLQiih SBkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kyEKb07cnpF+Ys8azUMr0fbF6+m6GD8x+9pP/zB88Tw=; b=z81TJr3SnyLNapAvkLakyLlVRY4TP2ZCaPIa6MkpVbnyv/SbQyyrD5DBhaU5xAB/rj /Fj7wlieym1fYiHB1aqzYZrU5seX1Y2lddkd1fd0V0Dwdmb76LxW0nU11FVR1ZBIyxrx 6px06yTr5VhE7BSqKwA0wD3dgd5DjVe5MFi8FsRkBfw9OYeF5N8uOi+9q9AwH+HqP2rh q2DkUEh0qmt7nuhGvZuGn+v2YQUxUbWvVE3fiIkmzL4rBXy0Mtk5jM5lHNlLs66mr/FM QX3WXPOIJcPT4JONiVSiUDkMicVzbujZoIzulZT3dyZhP4R7tM/3ZIFpEQiSVkBCvDF7 Vc7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob15-20020a17090b390f00b00205b268cd58si9992595pjb.181.2022.10.24.04.11.43; Mon, 24 Oct 2022 04:11:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230099AbiJXLFT (ORCPT + 99 others); Mon, 24 Oct 2022 07:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbiJXLEr (ORCPT ); Mon, 24 Oct 2022 07:04:47 -0400 Received: from hust.edu.cn (mail.hust.edu.cn [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5A791B798; Mon, 24 Oct 2022 04:04:00 -0700 (PDT) Received: from localhost.localdomain ([172.16.0.254]) (user=dzm91@hust.edu.cn mech=LOGIN bits=0) by mx1.hust.edu.cn with ESMTP id 29OB2GTB015664-29OB2GTE015664 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 24 Oct 2022 19:02:20 +0800 From: Dongliang Mu To: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vincent Mailhol , =?UTF-8?q?Stefan=20M=C3=A4tje?= , Dongliang Mu , Julia Lawall Cc: linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] can: usb: ucan: modify unregister_netdev to unregister_candev Date: Mon, 24 Oct 2022 19:00:30 +0800 Message-Id: <20221024110033.727542-1-dzm91@hust.edu.cn> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-FEAS-AUTH-USER: dzm91@hust.edu.cn X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From API pairing, modify unregister_netdev to unregister_candev since the registeration function is register_candev. Actually, they are the same. Signed-off-by: Dongliang Mu --- drivers/net/can/usb/ucan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/can/usb/ucan.c b/drivers/net/can/usb/ucan.c index 7c35f50fda4e..60f730094e5d 100644 --- a/drivers/net/can/usb/ucan.c +++ b/drivers/net/can/usb/ucan.c @@ -1581,7 +1581,7 @@ static void ucan_disconnect(struct usb_interface *intf) usb_set_intfdata(intf, NULL); if (up) { - unregister_netdev(up->netdev); + unregister_candev(up->netdev); free_candev(up->netdev); } } -- 2.35.1