From patchwork Tue May 31 15:56:09 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: 9145107 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 1791C60752 for ; Tue, 31 May 2016 16:01:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 087552040D for ; Tue, 31 May 2016 16:01:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F05BC27811; Tue, 31 May 2016 16:01:35 +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 B8C5E2040D for ; Tue, 31 May 2016 16:01:34 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id E242A266B2F; Tue, 31 May 2016 18:01:33 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 50A9D26688C; Tue, 31 May 2016 17:58:10 +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 5ED342668E3; Tue, 31 May 2016 17:58:08 +0200 (CEST) Received: from mail-qg0-f68.google.com (mail-qg0-f68.google.com [209.85.192.68]) by alsa0.perex.cz (Postfix) with ESMTP id 7D5FD2669D3 for ; Tue, 31 May 2016 17:56:16 +0200 (CEST) Received: by mail-qg0-f68.google.com with SMTP id p34so4171132qgp.0 for ; Tue, 31 May 2016 08:56:16 -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=AW4bbM23SamSV81l8BkyQ2etmrl8vroYrPOADig/9+k=; b=HhB5J0umE63WEtr6wNSyMdfG0zR5gvMYRD0UmnUfsJiSjGtrAKfr+rBuuhuKndm7co qMjfdHw8jSNM782d0IFLAHcokLInjlbHDam72qoD7UWTJikhvZJ4IgGBA6jwXMF8XiQx 6KHSvP+ti3tyHjZiHhzXiWNBf98/Iyo0KeZEprbDqNy0vcA1cpZxsz++akPLKiSoL0Xi V5bmPOotlNdpNjlGv7AsRTvz7Uh5N2ScKZjtif+OBpBDikIq1Op7GIEg+GAJ8L4hDRbU IGV1azlDrAyzJt1TYQX8yYLtZdgwU/+14UdI9Vv3kFevKTNIHw6lOl6XPwozKj43uflO Gm6w== 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=AW4bbM23SamSV81l8BkyQ2etmrl8vroYrPOADig/9+k=; b=nKFoiLSXTclBKQ9cfPYyM7p44ixmb+/1YdBtVJrBaYxcQHb1Wh9a55Z9KvxXhC/Xc2 s19FJgfPyX7K0v1wVL2Bwpl7CzLlA7Ez2DTZtQXVQex41zh2+MLc3TtNcjWrPYclNatS 8rbu85taascf5LiBP+wFUvbHSjN2eeHHl46y8uKsavNxDaOtgV/NrIbJe2nHSwKeGNxC TmwN4CjQOC7zqgVOqT8e4bYUffbAKKrXt5OeFJtlKj1XjiMd74IQUPwiAzCg4zzunVQC deRw4s8bhGmVGY3UhfoU8LcqIjmHtb6+fdC5uYdXKllGx198dUZU/r+grWLB1AqAN0XK 4K1w== X-Gm-Message-State: ALyK8tLnkdJHjEKvMBgNTJZXYP9H7T4zRscngiQN9gtvZeGMnH/1qEY28AyDBy0oKbPuQA== X-Received: by 10.141.5.213 with SMTP id h204mr32239678qhd.85.1464710175951; Tue, 31 May 2016 08:56:15 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id 90sm8468157qgh.28.2016.05.31.08.56.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:56:15 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:56:09 -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 08/11] ALSA: gusclassic: 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/gusclassic.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/gus/gusclassic.c b/sound/isa/gus/gusclassic.c index f001971..c169be4 100644 --- a/sound/isa/gus/gusclassic.c +++ b/sound/isa/gus/gusclassic.c @@ -229,15 +229,4 @@ static struct isa_driver snd_gusclassic_driver = { } }; -static int __init alsa_card_gusclassic_init(void) -{ - return isa_register_driver(&snd_gusclassic_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_gusclassic_exit(void) -{ - isa_unregister_driver(&snd_gusclassic_driver); -} - -module_init(alsa_card_gusclassic_init); -module_exit(alsa_card_gusclassic_exit); +module_isa_driver(snd_gusclassic_driver, SNDRV_CARDS);