From patchwork Tue May 31 15:55:48 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: 9145103 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 C01E060752 for ; Tue, 31 May 2016 16:00:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A92422040D for ; Tue, 31 May 2016 16:00:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DC6021327; Tue, 31 May 2016 16:00:36 +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 3BDB527811 for ; Tue, 31 May 2016 16:00:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 4D4D326684A; Tue, 31 May 2016 18:00:31 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 3E165266987; Tue, 31 May 2016 17:57:45 +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 B6904266A6F; Tue, 31 May 2016 17:57:43 +0200 (CEST) Received: from mail-yw0-f193.google.com (mail-yw0-f193.google.com [209.85.161.193]) by alsa0.perex.cz (Postfix) with ESMTP id B3EDB266986 for ; Tue, 31 May 2016 17:55:54 +0200 (CEST) Received: by mail-yw0-f193.google.com with SMTP id j74so19438447ywg.1 for ; Tue, 31 May 2016 08:55:54 -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=lmSfAmdl+s9aTY39PJutdrBghlPOhjv/oL8kY6Ok/3w=; b=OMAzzojHQKv6jrs5af0WDieqSDQD+EJJC0PMjTIW4MxD6vRykgogonLjsPXn1tuPuA WtUkc0LZ4+OcGUIjqFiM8NWrBjkNZV5N6OF/2a/1PGqjcPahs+qZz0KA+TFROo0I7V12 mU+AprMld8+yJ4wj2lMST8OCwnoIrnq56uasmk0zVyIPWwXA3p7lsCMm1iKHNY62g3/d OKjDetbZolUSZOJzKRwzxEBvJvL9m93dqO9l1+rszn9nR4XGukjAoOgW2X/F5k/H+7Gj y/XaMbmXZV0fGOQE0IjWUnm/EnbMxtGztnef+9y6TS+kPqqam0sb7WlrNj32BvT+6dTQ p60g== 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=lmSfAmdl+s9aTY39PJutdrBghlPOhjv/oL8kY6Ok/3w=; b=YxJirqRO5bz23nSPbUfm8hdLtDIibP2f8fFekiWjKTvFFvGs/Wme5aj07vy6mL87Mf mpRUDpe0td1WvKrRl55c6rq/Z0KiCS7zpC+FoTBrhxTvq3EFuURH0Yi5O6Jq1l2Yk2JC OHtd2cIq4m+Mjf+ZFLsdjAo1rV+91gguFlyQCNh+1JlbD1LHc6JxhVhcZF8GudZlizgR +T1M2zkjVXZboZlsMOxHGFlfN4zXYXKkwff3fZYmg4sKOTRtK9XPGBCtTuD271IJI27u 8FOYVcVv3UYS/NkUmuyS+uyv8ajAAq3TMm4QOGSaEr9QLYO8MaJXT2ij4+jndNEOR/yK qvxg== X-Gm-Message-State: ALyK8tJgWl/lyEr9o9BrsXslHNGLIj4K60vAUycmHE+4fXC0hDaza2e1v7bt+XAgUUq7UQ== X-Received: by 10.129.165.144 with SMTP id c138mr21465482ywh.271.1464710154181; Tue, 31 May 2016 08:55:54 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id w190sm16718692ywa.39.2016.05.31.08.55.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:55:53 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:55:48 -0400 Message-Id: <3849ddf107c646dc3f59de3788c0d3b1d14e0c40.1464709438.git.vilhelm.gray@gmail.com> 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 06/11] ALSA: gusmax: 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/gus/gusmax.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/gus/gusmax.c b/sound/isa/gus/gusmax.c index 8216e8d..dd88c9d 100644 --- a/sound/isa/gus/gusmax.c +++ b/sound/isa/gus/gusmax.c @@ -370,15 +370,4 @@ static struct isa_driver snd_gusmax_driver = { }, }; -static int __init alsa_card_gusmax_init(void) -{ - return isa_register_driver(&snd_gusmax_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_gusmax_exit(void) -{ - isa_unregister_driver(&snd_gusmax_driver); -} - -module_init(alsa_card_gusmax_init) -module_exit(alsa_card_gusmax_exit) +module_isa_driver(snd_gusmax_driver, SNDRV_CARDS);