From patchwork Tue May 31 15:55:58 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: 9145105 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 BAEC860752 for ; Tue, 31 May 2016 16:01:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC1A72040D for ; Tue, 31 May 2016 16:01:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A0B6B27811; Tue, 31 May 2016 16:01:04 +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 E7F272040D for ; Tue, 31 May 2016 16:01:03 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 16D84266AB8; Tue, 31 May 2016 18:01:03 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id D1BEA266985; Tue, 31 May 2016 17:57:57 +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 5E1C826698D; Tue, 31 May 2016 17:57:56 +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 7777F266985 for ; Tue, 31 May 2016 17:56:05 +0200 (CEST) Received: by mail-yw0-f193.google.com with SMTP id l126so19410638ywe.3 for ; Tue, 31 May 2016 08:56:05 -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=meUZ1gkQ0HJ01s5aVH1Zime20SgDBYd4MNHwtJdMCZU=; b=og/dRZHNWiJlDd3Pc49IBCKp6lFV3ABNj9ZWmy3v9pePypmufUgos97xwWnDDPpSUW SqJyyYPx66BJUkDrRwatiZhDMfBhD9j0Cj8hu9d1P827APlSSlaUuYZsDvhEbxu1v0UL 65uZclcQhVNxFuoY+797dESQs4yeeb0bSvHM/XL+ery9ltSHlqjfMYQEVSTgXNJcfOQY E/cyBePp46AsHplkZYCX2253c4KrtYddKPKgUgeBDBkfbylSkvcoDZaIoYcXwHeXD+Fg 2BKK+8x5a+VekEX/WejMxFtgSMA7w2hIRCSXLR0gUZwKODQbx1rHbrorYL8QoaKT+VeX LpdA== 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=meUZ1gkQ0HJ01s5aVH1Zime20SgDBYd4MNHwtJdMCZU=; b=I/BY++vJVnzHNRCZBkIHpxIUguq7Ax0gIbUZOO8jthpIIJw2UBqTc641rj1GbDWbez yJ0wY6RWN9caTC5mxmmHiJOIi/YwHqhtTjRPdnGk4UuWHk0WYPrkly6ZT87qAS+5cxsc +OtKm0+sUJvRlxg7F5j+DI+7cjE/zLLTAtY4AQzLm9tCnH9ZhrQcZ7Hz5LwQVw6KT1Pu R424kI2AwHMLHJnU+TLa1+R4YMGnSyNywybiGyA2Ghv5smAX3H/l4NZFqNYFZ7k2DM/N 0ssTEJiwhcI6syb48nCul2CN12ZanBjiXPP11fdaVOGjkJrP0ANtt4SCgMwMl6miljDZ fRaA== X-Gm-Message-State: ALyK8tLewcTbleXLYJLalQ3cdNN70+fs4b2HVmLKJWEthlzHgkX3l12SpUlvxhOATlwCMw== X-Received: by 10.13.241.68 with SMTP id a65mr22698075ywf.324.1464710164939; Tue, 31 May 2016 08:56:04 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id p206sm16726424ywe.41.2016.05.31.08.56.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:56:04 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:55:58 -0400 Message-Id: <17133725c1f50aaddc924df8db466d04f202498c.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 07/11] ALSA: gusextreme: 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/gusextreme.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/gus/gusextreme.c b/sound/isa/gus/gusextreme.c index 693d95f..77ac2fd 100644 --- a/sound/isa/gus/gusextreme.c +++ b/sound/isa/gus/gusextreme.c @@ -358,15 +358,4 @@ static struct isa_driver snd_gusextreme_driver = { } }; -static int __init alsa_card_gusextreme_init(void) -{ - return isa_register_driver(&snd_gusextreme_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_gusextreme_exit(void) -{ - isa_unregister_driver(&snd_gusextreme_driver); -} - -module_init(alsa_card_gusextreme_init); -module_exit(alsa_card_gusextreme_exit); +module_isa_driver(snd_gusextreme_driver, SNDRV_CARDS);