From patchwork Tue May 31 15:54:40 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: 9145077 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 F1F8460752 for ; Tue, 31 May 2016 15:55:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E37D221327 for ; Tue, 31 May 2016 15:55:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D859C27811; Tue, 31 May 2016 15:55:50 +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 2732B21327 for ; Tue, 31 May 2016 15:55:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id F243126697E; Tue, 31 May 2016 17:55:48 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 0765D2668B2; Tue, 31 May 2016 17:55:14 +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 5ECE8266866; Tue, 31 May 2016 17:55:12 +0200 (CEST) Received: from mail-yw0-f195.google.com (mail-yw0-f195.google.com [209.85.161.195]) by alsa0.perex.cz (Postfix) with ESMTP id 567E72655DB for ; Tue, 31 May 2016 17:54:47 +0200 (CEST) Received: by mail-yw0-f195.google.com with SMTP id l126so19404846ywe.3 for ; Tue, 31 May 2016 08:54:47 -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=IJBi/BW+o+LBZdcVmjdZYjCtuOu2r5nv0TJ3ol+AEOc=; b=raBmctA8jZ50eHH+VK2k/BIC0m4sF6LdVeYqUFKjiWWFPVwO3oGKZsbFkhKV35Amb/ Pt0C7l6igBB4pr9BSTMfcU1pZHrgsrMbisVK+puqr0Yml627fLHEtkOWkLJAVw1z0EBU ACRo/mhp5FqcvxmGyPmWc8CYX+jwjZCh/ojp1EU1WsM1ea/7k94jCDhSjgQsGjQvL+Mk pgZQATa71Tbj9UCrkK4Phux2TqaeLlGs6LN7eXpPmx2wR9sLGcrOEN/U9/M10ZWt5OLz Qa9NeBwZPgL8c+6x0ZH2/VhU8NFMQYBz4eFCeksJU2ez6jboI9BUkAxU5TQtqDJAhk+T xjMQ== 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=IJBi/BW+o+LBZdcVmjdZYjCtuOu2r5nv0TJ3ol+AEOc=; b=ms+fM8sVgEgjH627ycrN20kubId7ajZPbAY2Lb5hV6azMpOibF9QScNF9tdrfSVJ8H wlVMon/YxbmpA19ajPLXSvisXjoIT9BAq8BhPvdFo2tsNOkoiLzL5XKUQNQ0RvlOEmBm FNCM7205qVwDVaVmmQ8JsJoE2U0BZCB+sIEI55hfy3hAcAxsozOAtjLpYhQz3luDRXUw wxYBIDlFxmuiO5LHloNn9BQr/cycXHdQF0f2KplpikHKcXOhjAIMtQzH23e93AdKvy71 g51rbEUu6rq4BK2DQw5ZVGfWBze5QUKBLrRSuUWRbnmVaXPEAcm57opIdRQr84bEnxmQ a+FA== X-Gm-Message-State: ALyK8tJtei2OKqW5nO1PCOcbx68eDZL9dyzsxS2YxNQC8TYB3Z0RKOzI+tbQEUP3php7FQ== X-Received: by 10.37.119.14 with SMTP id s14mr4362211ybc.8.1464710086125; Tue, 31 May 2016 08:54:46 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id u19sm16729240ywf.8.2016.05.31.08.54.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:54:45 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:54:40 -0400 Message-Id: <3d016d3b3353f020d966b26c05f77b3698e3d037.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 01/11] ALSA: sb8: 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/sb/sb8.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/sb/sb8.c b/sound/isa/sb/sb8.c index b8e2391..ad42d23 100644 --- a/sound/isa/sb/sb8.c +++ b/sound/isa/sb/sb8.c @@ -251,15 +251,4 @@ static struct isa_driver snd_sb8_driver = { }, }; -static int __init alsa_card_sb8_init(void) -{ - return isa_register_driver(&snd_sb8_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_sb8_exit(void) -{ - isa_unregister_driver(&snd_sb8_driver); -} - -module_init(alsa_card_sb8_init) -module_exit(alsa_card_sb8_exit) +module_isa_driver(snd_sb8_driver, SNDRV_CARDS);