From patchwork Tue Aug 3 11:40:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 490913 Delivered-To: patch@linaro.org Received: by 2002:a05:6638:396:0:0:0:0 with SMTP id y22csp564580jap; Tue, 3 Aug 2021 04:42:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwahz2z7LRZiBsJq3jy5v4N8uKZ/Op4mIEPyYJxtv7Tkew2f6tSj/iVtF3dPP60vGLVaAuM X-Received: by 2002:a17:906:2817:: with SMTP id r23mr19750670ejc.285.1627990957349; Tue, 03 Aug 2021 04:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627990957; cv=none; d=google.com; s=arc-20160816; b=O69YMFzqWM707SFJJU2eWX/HmUwUG/3VtARSj5/Z3VgwJ+AkJbLI10V83A8g42GUcu 5waR3m/PqGVbaLEtopEwjbnIv5KF+vFUy/QMh1TeL0OOVZolwxPmYABRPkiyEZnIM5I5 9FjfhuLEV08C8c9ieEgbk9TcmdUkxhhr58JspIQG4/Xf5HIir+SrOIf56twJ3q6kZcfC W7xSGandFydnFHUlPm+ZADtrkG+Dt0qGOOYMk/XR09MOq7d2dc+KUlIdmStccI8mZcEa xQxncBPOJpx8vaoPGUYuBn2jEpMX5dnHzsW3ypgRKeSoQ/sR7Ye7ck1BE4GpJQfG4ujF xXyA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HiuqOnQOyaEr6u4dBXpaCCJDHOlt1to3ySbMqU54/Js=; b=W/vgxlvXO06QY/qecdunRJIMSJsOkVNpm9qAhphqlWaum29gFMXG1eCIxOXwo90mYb igIeKmNRRt3xT6RYgA/DkwpOVef8MrbAJeEQsI6wFqtfMDadrLy+SI3TC7yqwWN4wH02 gWyigVrsuaQGY/6vv44jHwy4UsksqCctDojmAiyRuNvV+BYduQNqvDJ/kYmxvi5EoOIw M1rStudriISLSyp+PMfCqhNLkzoMGqKvteR8+eh7ThNFMKQCAyAF+B3Z/P8sHgq0Np/B w4bKo6m3rHkaN9ul+Vl3gkCFAebFphFS7Z3FhliYaQ7Ua3LJLNILu4mIEemeL/kVCbgV CC4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KaDd7R8F; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr21si14073230ejb.14.2021.08.03.04.42.37; Tue, 03 Aug 2021 04:42:37 -0700 (PDT) Received-SPF: pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KaDd7R8F; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236092AbhHCLmo (ORCPT + 8 others); Tue, 3 Aug 2021 07:42:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:34022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236093AbhHCLmL (ORCPT ); Tue, 3 Aug 2021 07:42:11 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 74FFF60EFD; Tue, 3 Aug 2021 11:41:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627990920; bh=vQwo8Eo+Z/NnYn0D/h3hKgl5/YLTXiJOj2evFBvzVyI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KaDd7R8FdQFpsA9M3NSI44ShvXQTjOXBKBgACMMlzZrrNaYG0tzPkkU2Y4Zb9wljM Zi83gUvw9FNNpAuk9EVNEtVO5wyRpi+DtWW1q73r5+gPJcSdesuEYTDhSxI1JiLC/Z 5GGlYxmoPXP88QZ3eTy/PCbETyuANDhdugniAATdb9nkWP4lKpX5xMXbyfoE4KKjzp iSLcEOl9tgbQukJ2tn+nGDoB07HbnD7vKeg+WN0XEcf6fVVvM2GiuX1mviI99ngDGL +4xd8el33ZIQK/gAWb6GA6ZfFol/yvMeFLTR7aOdvhZq979tAR34brReaqFPBLUC+A Yz1SEjJgBdCxg== From: Arnd Bergmann To: netdev@vger.kernel.org Cc: Arnd Bergmann , "David S. Miller" , "Maciej W. Rozycki" , Alexei Starovoitov , Andrew Lunn , Andrii Nakryiko , Bartosz Golaszewski , Christophe JAILLET , Doug Berger , Eric Dumazet , Finn Thain , Florian Fainelli , Geert Uytterhoeven , Jakub Kicinski , Jessica Yu , Michael Schmitz , Paul Gortmaker , Sam Creasey , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH v2 13/14] [net-next] wan: hostess_sv11: use module_init/module_exit helpers Date: Tue, 3 Aug 2021 13:40:50 +0200 Message-Id: <20210803114051.2112986-14-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210803114051.2112986-1-arnd@kernel.org> References: <20210803114051.2112986-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Arnd Bergmann This is one of very few drivers using the old init_module/cleanup_module function names. Change it over to the modern method. Signed-off-by: Arnd Bergmann --- drivers/net/wan/hostess_sv11.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) -- 2.29.2 diff --git a/drivers/net/wan/hostess_sv11.c b/drivers/net/wan/hostess_sv11.c index 15a754310fd7..e985e54ba75d 100644 --- a/drivers/net/wan/hostess_sv11.c +++ b/drivers/net/wan/hostess_sv11.c @@ -319,16 +319,18 @@ MODULE_DESCRIPTION("Modular driver for the Comtrol Hostess SV11"); static struct z8530_dev *sv11_unit; -int init_module(void) +static int sv11_module_init(void) { sv11_unit = sv11_init(io, irq); if (!sv11_unit) return -ENODEV; return 0; } +module_init(sv11_module_init); -void cleanup_module(void) +static void sv11_module_cleanup(void) { if (sv11_unit) sv11_shutdown(sv11_unit); } +module_exit(sv11_module_cleanup);