From patchwork Sat May 15 22:13:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 12260035 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C39AFC433B4 for ; Sat, 15 May 2021 22:16:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A5A3B6135C for ; Sat, 15 May 2021 22:16:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230332AbhEOWRf (ORCPT ); Sat, 15 May 2021 18:17:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:47802 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235364AbhEOWQW (ORCPT ); Sat, 15 May 2021 18:16:22 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BFDD4613C5; Sat, 15 May 2021 22:15:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621116909; bh=CQuQkxjLga6hdKtVMH2QaxhuQmxzd8lFqkjXs46pFbE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OhJNM70uQlXOiKfCi7Ec/iOCPcYylUrRbjgJNwfTCNSG55oOBvGwERxnEGJ12pjHC 98HeNop749NfxAxdHL5Xxm9fvFNLer46jZNmOa2NGCYGEax/VGRfjbvuV1WEr2hCyh BkOFpdQue2IB/I1NDf7Ocs8Aabd4VMdvgSo1/OCBnDZ9T+RAw1A+IRMSeoQNJ/kxn/ FvA+tM5c32i12mR3phMUOLX5j4jXEr907G4mVh4j61Jv4xAgtqSPKrEdaa/wiSy9nl ADwmjMDCCO5UUcLGROhhTFD/SKqxbdW0HfRM8xWsBR2ZTGJAmZTVvn2qYXrhDoTiBs /WCCnsc7jBPCg== From: Arnd Bergmann To: netdev@vger.kernel.org Cc: Arnd Bergmann , Paul Gortmaker , "Maciej W. Rozycki" , "David S. Miller" , Jakub Kicinski , Doug Berger , Florian Fainelli , Sam Creasey , Geert Uytterhoeven , Finn Thain , Christophe JAILLET , Andrew Lunn , Alexei Starovoitov , Eric Dumazet , Andrii Nakryiko , Bartosz Golaszewski , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: [RFC 11/13] [net-next] wan: hostess_sv11: use module_init/module_exit helpers Date: Sun, 16 May 2021 00:13:18 +0200 Message-Id: <20210515221320.1255291-12-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210515221320.1255291-1-arnd@kernel.org> References: <20210515221320.1255291-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC 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(-) diff --git a/drivers/net/wan/hostess_sv11.c b/drivers/net/wan/hostess_sv11.c index 6c05c4c8914a..59808fba23c2 100644 --- a/drivers/net/wan/hostess_sv11.c +++ b/drivers/net/wan/hostess_sv11.c @@ -338,15 +338,17 @@ 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) { if ((sv11_unit = sv11_init(io, irq)) == NULL) 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);