From patchwork Tue May 31 15:56:41 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: 9145111 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 76A8F60752 for ; Tue, 31 May 2016 16:04:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 68DFB2040D for ; Tue, 31 May 2016 16:04:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D16E27811; Tue, 31 May 2016 16:04:02 +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 ACCF42040D for ; Tue, 31 May 2016 16:04:01 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7EA032669D9; Tue, 31 May 2016 18:04:00 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 41EC32669FE; Tue, 31 May 2016 17:59:34 +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 E9372266AEC; Tue, 31 May 2016 17:59:32 +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 78D402669C7 for ; Tue, 31 May 2016 17:56:48 +0200 (CEST) Received: by mail-yw0-f193.google.com with SMTP id y6so19423249ywe.0 for ; Tue, 31 May 2016 08:56:48 -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=kPyUaajQA3F17w54zu9NglG9yeZAl5b+B138Maaxnzs=; b=i/pPX/5nsDvGbzWRyM/90nEEvUD5o8qhwXPih8DrmxMLK8XktgzaBNgWPsVCFDPOQK vf4dhmdKQulJV88nhMXAdEUWKIn2VDPwpn09IxnV9YK9XGuoY0sgdio9tvwVBBMpglO0 AkHrGLqekypGZhXHG2qXnjwgcAj0hPe4uNnPtBEScbXqx8b9r8Wz9Oy+kvsde+zJFuQV HxOE3mNt2aGvF5xfSGcCK74EKcPkjwmYh2eaWf2iC1YLbqAI7rFHzuw9/egCDRZ7JToR Bqvh7sH/+P8uPzY3HV2c/u2wnw4qUoO4vWTOxgPIMwmWAfDVLVLXXOIvV1WWa4nDraTT W9ew== 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=kPyUaajQA3F17w54zu9NglG9yeZAl5b+B138Maaxnzs=; b=fzCDq5Ionf+d6l/Tu5KyU/0TRyQp3Ib/uv67oiYWxTZdv4+8gwO8j5cqO6YmDIJuH0 PHcdriO5uRnKDXXqwkLlF3M0/NERLaK8ClrqBaGoDuEQpo50npVcw9qK8WaOz3yH+bnI 072biJZHR0cgfdIcxuzEopRIxXRSVaDY9stjXTLUJKmV1JbDL6zPbuo2aZfa4zC5G3WU Z8B6OlcrJsm34ERsl2mGdGopzGZH74kY/QEJWcKcryPXbb/jusDienvIxXvNULvZE5z1 3r8sCf3gNwbNerDFsC63UQ1PON9fvOzNSZEceofnLuqMDTTZ+x6xjxnMZSlySuK6Ft44 oGUw== X-Gm-Message-State: ALyK8tJWWxVvps4WeEi9bzWhW4zjf/3lt3uX/sCFK3vpMe2C4IWWR6B41gDAEgKkxxkivQ== X-Received: by 10.129.46.149 with SMTP id u143mr19757737ywu.170.1464710207951; Tue, 31 May 2016 08:56:47 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id f129sm16737293ywd.10.2016.05.31.08.56.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:56:47 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:56:41 -0400 Message-Id: <5ed9fcaafd3cd8c261b5096c813802d8671f5001.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 10/11] ALSA: galaxy: 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/galaxy/galaxy.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/galaxy/galaxy.c b/sound/isa/galaxy/galaxy.c index 3227884..379abe2 100644 --- a/sound/isa/galaxy/galaxy.c +++ b/sound/isa/galaxy/galaxy.c @@ -634,15 +634,4 @@ static struct isa_driver snd_galaxy_driver = { } }; -static int __init alsa_card_galaxy_init(void) -{ - return isa_register_driver(&snd_galaxy_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_galaxy_exit(void) -{ - isa_unregister_driver(&snd_galaxy_driver); -} - -module_init(alsa_card_galaxy_init); -module_exit(alsa_card_galaxy_exit); +module_isa_driver(snd_galaxy_driver, SNDRV_CARDS);