From patchwork Tue May 31 15:56:52 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: 9145113 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 7A92E60752 for ; Tue, 31 May 2016 16:04:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CD562040D for ; Tue, 31 May 2016 16:04:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 61B0327811; Tue, 31 May 2016 16:04:40 +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 937752040D for ; Tue, 31 May 2016 16:04:39 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id ABB78266AF5; Tue, 31 May 2016 18:04:38 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id C1897266964; Tue, 31 May 2016 17:59:47 +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 D0ED8266964; Tue, 31 May 2016 17:59:46 +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 AA152266A15 for ; Tue, 31 May 2016 17:56:58 +0200 (CEST) Received: by mail-yw0-f195.google.com with SMTP id l126so19414613ywe.3 for ; Tue, 31 May 2016 08:56:58 -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=3KfL34sKSU42Zfqa7F+zo76FOovBARjcp06jB31Z1pQ=; b=OYZSngoKaUEdylSwm75GH52vy4PnxO/P/WMKSa0/HliIMZ3AULBhCQLFJVteo1KG/n +HJ/cp57Zo4RMha9hph/SxIPOuWYUFAZS9Tj2UJzVUFY+p13WQM7VCSTFSfDHvjhZCZk 72dBgEMrwg3sh4fwb0lFXmti9k15dtw5YjZfh8tVK57U7SYQ82Akyh3HwNk8RrGYY+Mv vHjmvnHaolJqgsaIK9spkbpPoKpQhrR4fPZSkoaKs4hKGqIdIjdjuGo8HDCvQKTIH+pp Kl78QjvqZDowEjB9uzONLa+4d2rIYdNK7b7DxlLJ6jRJN+P9F4Frk9KJaZah1g9k0lN8 Wgsw== 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=3KfL34sKSU42Zfqa7F+zo76FOovBARjcp06jB31Z1pQ=; b=VXjpnOFjWHZ3aoyLTe+c/dbumb16K0IMmLujzNFJGGR4TgSDadEDatXm0zi1VN2chH Y6sgT2AzE5Nbo8H9LExsEw8lqicFMN0tYs8DFGFeVU0YZmKWevkCrJgrR/YI46dbab6r dkILgW4iUFh+v7OnhrDu9BY9jJcZ4w7caqHdII3l/k3GfXL2/vfB1gCJ4xYldAy3G+gz mCdVHmwbJvnF3St/4lqQLXvn7szqeR1QWrjGyJqgNA5rMWQ3yEaPgX494Mxs70T+Zxc2 2j+itxbyu6oJuQl0j9oxmftWI+RTxCaYkvVF9oIXVzh/71grYgrBV3KWj7j+/+XsuoZb nMgg== X-Gm-Message-State: ALyK8tLmJc20H9pb7LTIKluW/Q2/iG6/s56NXrm+Fpy4dUj6WlkG211gQGF2pcchnnWYWA== X-Received: by 10.129.79.77 with SMTP id d74mr22052624ywb.115.1464710218153; Tue, 31 May 2016 08:56:58 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id y2sm12211764ywc.55.2016.05.31.08.56.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:56:57 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:56:52 -0400 Message-Id: <1f9a641b808cf28fbb330362aac9602fe1781d46.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 11/11] ALSA: adlib: 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/adlib.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/adlib.c b/sound/isa/adlib.c index 120c524..8d3060f 100644 --- a/sound/isa/adlib.c +++ b/sound/isa/adlib.c @@ -112,15 +112,4 @@ static struct isa_driver snd_adlib_driver = { } }; -static int __init alsa_card_adlib_init(void) -{ - return isa_register_driver(&snd_adlib_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_adlib_exit(void) -{ - isa_unregister_driver(&snd_adlib_driver); -} - -module_init(alsa_card_adlib_init); -module_exit(alsa_card_adlib_exit); +module_isa_driver(snd_adlib_driver, SNDRV_CARDS);