From patchwork Tue May 31 15:54:50 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: 9145095 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 4914360752 for ; Tue, 31 May 2016 15:57:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B09A21327 for ; Tue, 31 May 2016 15:57:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FBE227811; Tue, 31 May 2016 15:57:16 +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 938BF21327 for ; Tue, 31 May 2016 15:57:15 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id BCB51266A3F; Tue, 31 May 2016 17:57:14 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 057B92654F2; Tue, 31 May 2016 17:55: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 31191266841; Tue, 31 May 2016 17:55: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 82119266162 for ; Tue, 31 May 2016 17:54:57 +0200 (CEST) Received: by mail-yw0-f193.google.com with SMTP id j74so19434513ywg.1 for ; Tue, 31 May 2016 08:54:57 -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=7RxKm/H8Gv/YwFCDf7N6f7N7MfiOY8X7epgW1t2Y25s=; b=foF6wr0O/qLrharyGz714gYlnoM0XxMTJisusarMntgQATmX9rZtK2nI7E98qKvxDn ZIQkG0Tqt+SsjwhOtzBVLu/GwcF+NURr2qdtt3IGog05RfT8TBlliLpl0OKsTUvQTQ6x ARcHKDUjEdsmRNSkmZg5yU4hr/lCHWb3ZAqW3FeV/cC4B6C0mSEEskXYUeHOmv59LUit ogJq9U1yVHf6zwkLTZ7sbrQxAgNvWZrtTYOMv/iW4j1GqvfWQYv3zazlEZzNTAQ/YUD8 9ixUvdlQFoiaoze6P069B/SlKygxGepNCRaBePV2lUoYuLnssO4lMVB4TuDJ7hhe9839 OUBw== 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=7RxKm/H8Gv/YwFCDf7N6f7N7MfiOY8X7epgW1t2Y25s=; b=irHrwrJ2Kr2Pdgwdu/OWYCY3+R9+d837Mz/exh8raXVjg8MFhqBVkuHa1hojdYhJI9 XGhm74VYTqCyF24asFDwqNAy/wxQ1gHYIThEu4dUIW+nNpFUNHxj71tRVWL0Soo5tYnk +dryQjRad6zkIAW87bVeycS1uYOPQuJYkKuE4sIKDvcFC/Zj8d1paVncQCKH9giPbuXl nNVxiAGPc/aUgfddU7hZfgD+3WMwt5RTLIrcv8jAH1NWZ+d/SKOstRQq8a2jtD5xKvIz gZjpK/9iNGsgFUpc7JT4gn2wQZ3Ghx9FZKfCmHRL9aZQf1rpKJWMZP0rwYwn7OOhGFoQ PcKQ== X-Gm-Message-State: ALyK8tKBQ3PO9k3sGiS8v4jmrCEVcmWKiCFWFtcTMDX1LOoZ71EITN1f/1IxaGabGDP0TQ== X-Received: by 10.129.135.1 with SMTP id x1mr22891001ywf.31.1464710096913; Tue, 31 May 2016 08:54:56 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id w185sm16746434ywe.1.2016.05.31.08.54.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:54:56 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:54:50 -0400 Message-Id: <01875b88c458ae8d0a189e8ef1db5046f3fda234.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 02/11] ALSA: jazz16: 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/jazz16.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/sb/jazz16.c b/sound/isa/sb/jazz16.c index 6b4884d..4d90997 100644 --- a/sound/isa/sb/jazz16.c +++ b/sound/isa/sb/jazz16.c @@ -387,15 +387,4 @@ static struct isa_driver snd_jazz16_driver = { }, }; -static int __init alsa_card_jazz16_init(void) -{ - return isa_register_driver(&snd_jazz16_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_jazz16_exit(void) -{ - isa_unregister_driver(&snd_jazz16_driver); -} - -module_init(alsa_card_jazz16_init) -module_exit(alsa_card_jazz16_exit) +module_isa_driver(snd_jazz16_driver, SNDRV_CARDS);