From patchwork Tue May 31 15:55:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Breathitt Gray X-Patchwork-Id: 9145099 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BCC7560752 for ; Tue, 31 May 2016 15:58:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB21D2040D for ; Tue, 31 May 2016 15:58:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C1B427811; Tue, 31 May 2016 15:58:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D70BD2040D for ; Tue, 31 May 2016 15:58:18 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 0067226682D; Tue, 31 May 2016 17:58:17 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id AA4C42668AC; Tue, 31 May 2016 17:56:25 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 679062668AC; Tue, 31 May 2016 17:56:24 +0200 (CEST) Received: from mail-qk0-f193.google.com (mail-qk0-f193.google.com [209.85.220.193]) by alsa0.perex.cz (Postfix) with ESMTP id DED942668F3 for ; Tue, 31 May 2016 17:55:24 +0200 (CEST) Received: by mail-qk0-f193.google.com with SMTP id q184so25331229qkf.0 for ; Tue, 31 May 2016 08:55:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dECEmmHyz1NPBkI8CrTE+cj0Du+sm1lTP3h2ZH2YLfw=; b=dN2wcQ9j55BJUlOqVgf0ReASZUWD1n1mfT98qpe4NvYJL5ufoYyv3V11tqLF/qmbtO lIvQ2L/yQmuRr2cjabOeyXDsZCDmrUc0+oYhgTM+BUIVEpzxBkyyFdx2UAs/HOdupb2t zR0ffB3xrQyp+j1Id3x8fZDpmOPStscGU/xZt2vd1uHtesQXB/8vM3GtTEJqpDZPagTu 5wING7l8KxZifVQcE4lJ0YWgTzmaLZUr1zvuM3O8KhmQgBacPti2pJ2hqLohPC94qc4p a36Gl3HtwxaT4mmxrBTe8uNJ26W+y0dMaOaOD6InX0rsfylx/tr0cSHUJgViBNr5VXqM HO+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=dECEmmHyz1NPBkI8CrTE+cj0Du+sm1lTP3h2ZH2YLfw=; b=J5Xx36i13Zs+CqTcMWOcwFnXlhJU3ategi/XCbDDDS+Vj8FvKvcj4pOSP1dylNk7uM tEN4zjDfgUumGGAZD0j5eWBgy3JkpQEG9mvPs6JdMpENqkplwWTjb1h5UQx2PwII9Gxv SpC+aMnUIITZSahtQ+ZarO7oQOmbB7iwgvgsw8pNTZZdC7t8WtVe1C1B8loD6Z9vzmd4 QcFy4AzgHUk8576j8j/yaJ39Sg2BA04AYKD0qSSfWFSEJPF5PbWKf321GMgsn04kObMW 9rnRmOs5/KExdGsv3JQPy/bIzSNoWsbN+/Rzd14umunaooQh1vqpDdfqV1Vdq11hUWEx eMSA== X-Gm-Message-State: ALyK8tKYIgMoGpSi3sehCWqZ97StcGdamRfPLQPQgwp2EueKfX2Izw13ekwosSj7ySbGjg== X-Received: by 10.55.158.2 with SMTP id h2mr3511083qke.94.1464710124187; Tue, 31 May 2016 08:55:24 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id p13sm2090737qke.7.2016.05.31.08.55.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:55:23 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:55:12 -0400 Message-Id: X-Mailer: git-send-email 2.7.3 In-Reply-To: References: Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [alsa-devel] [PATCH 04/11] ALSA: cmi8328: Utilize the module_isa_driver macro X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This driver does not do anything special in module init/exit. This patch eliminates the module init/exit boilerplate code by utilizing the module_isa_driver macro. Signed-off-by: William Breathitt Gray --- sound/isa/cmi8328.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/cmi8328.c b/sound/isa/cmi8328.c index 2c89d95..7874750 100644 --- a/sound/isa/cmi8328.c +++ b/sound/isa/cmi8328.c @@ -469,15 +469,4 @@ static struct isa_driver snd_cmi8328_driver = { }, }; -static int __init alsa_card_cmi8328_init(void) -{ - return isa_register_driver(&snd_cmi8328_driver, CMI8328_MAX); -} - -static void __exit alsa_card_cmi8328_exit(void) -{ - isa_unregister_driver(&snd_cmi8328_driver); -} - -module_init(alsa_card_cmi8328_init) -module_exit(alsa_card_cmi8328_exit) +module_isa_driver(snd_cmi8328_driver, CMI8328_MAX);