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: 439461 Delivered-To: patch@linaro.org Received: by 2002:a02:b78d:0:0:0:0:0 with SMTP id f13csp1438041jam; Sat, 15 May 2021 15:16:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVfcoac1mGyS1Rz/7BC8uTb83sbtP6M5UAeS0yh+AzoMZKtShecTsdmczQTE0Odg7s3mec X-Received: by 2002:a05:6638:cc9:: with SMTP id e9mr1156965jak.46.1621116990020; Sat, 15 May 2021 15:16:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621116990; cv=none; d=google.com; s=arc-20160816; b=uy/uqv+5jh+FLeWo4aG/Q8lqw13Fixww/eo+Qs7KHAY0gj/85drfS6ZqdsbCuRgRJS R2I3/xsTfOHaAHsXPzAvGuZR9uiFcUUA4NQN16gcQBYTXA0HaUHQo4ZqHs5ANbYVByqc Z8Ny0LursN+3W5QHRtR7D9+cVi2HM4GphByvhphOcEz1jtE7QmDyFBAOCAiu04+kLGSX R3cbQx332YCb5J34tsyuO7V+g7bL64kpA5+WUTHFByg8P6C7B51lxoxGkuwAxN/9AiWp gYuOqsczMIEVHmjKFE4Fy5TNq6udneWKzlncFwjeF3Ef5kdfWi+7WbsSxMgglrfOPdL2 S+Lw== 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=2fX7xQ4DqazYXDso7Y2BaufC37ZdceuIpKd7SeiU4yM=; b=z8Uu4nGZJCIx9zjwi3kjpYjvmj865c751maCmhWypIk69o55E0qvhHWIEYU0aNZ+Mt OaMLiVXIU4+6SNL0JkBpBdiDi2FR8rnTZ4P09ycn9Z90Uoz1uHKOYGkH4goyfnHxNo2O SdvQYgcfFbjb5qvKkNcuf0+X1yUivLawpOmVEY7QOMKrqAxzSiooHqwy/UZ+LOQXHoXY B1vnXeoDuMVdgvHWh2K+GBwC1OoeF2+M8nb2MhVRFkOXuvXrLbWB5SOZHGlg5tBu70aV NsIsMjqbzQyi3b+og0sYId9XAj0YIFAB5fnceBnyeciXXk1KzgPazzblPlGmOLlcMOW8 4USw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OhJNM70u; 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 y11si11048059ily.71.2021.05.15.15.16.29; Sat, 15 May 2021 15:16:30 -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=OhJNM70u; 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 S230332AbhEOWRf (ORCPT + 8 others); 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 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 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);