From patchwork Tue May 31 15:55:29 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: 9145101 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 54AD560752 for ; Tue, 31 May 2016 15:58:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45C962040D for ; Tue, 31 May 2016 15:58:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A3CE27811; Tue, 31 May 2016 15:58:51 +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 8318D2040D for ; Tue, 31 May 2016 15:58:50 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 89707266AA5; Tue, 31 May 2016 17:58:49 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 35A1D266960; Tue, 31 May 2016 17:56:38 +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 7DB2A26695E; Tue, 31 May 2016 17:56:36 +0200 (CEST) Received: from mail-qg0-f65.google.com (mail-qg0-f65.google.com [209.85.192.65]) by alsa0.perex.cz (Postfix) with ESMTP id D4F81266960 for ; Tue, 31 May 2016 17:55:35 +0200 (CEST) Received: by mail-qg0-f65.google.com with SMTP id p34so4169956qgp.0 for ; Tue, 31 May 2016 08:55:35 -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=8VJZvH+gL87UIs1MkpIZQshBZDa53/Hqkks/ft7Vk8Y=; b=v48KBAlzSHqxt+eYYcQRHz73evRs+r/V74aEO1v7FPBpgslPvxTQD4C7PQCuevJPVB lI4WwM94QmpFzMDXk21KDuY9oa73cJDqtWE3/mw/d4dkV1psnAHQVIQ9RoBgsbxZTWrB vPEzYb+pnyb4KHUBvm/gS8pi8OkUAE6o3G24sWTPHHDiwt26Nl68waBs6cSM5Um57C+W WZOOvf8pMMDoZo2A1bvpfyvSSR9kqFriNOHmf1/bW80UccNd9tgRbv85gsdiLBd2dlT8 HlQHcccm5pD8A6SHfq4iSxo3stKLYsVT/ar1utCCkhoBlWcHUnbDbvV7XV5lSzEX8y2w uWSw== 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=8VJZvH+gL87UIs1MkpIZQshBZDa53/Hqkks/ft7Vk8Y=; b=HVC+pcN3Zz/ieQ/I+AVoA1zUQnOUpW8S/E+mwmm/9VlOrSaZqFiwHYby0r8UFvY6X2 q04+4jbSYoSAKrA8iF/KWFWDGQOi7bJChi8OJWxvtgjZAPnPUdD9QVlpmpmXfetlZley JNUGmYIlSjjvOdEf73v5oMjBD/4sW8hOoujOCpX5P82x5FbTwCUL6GYCLFyAWKDijPXf 6HMeWCm+QJp88Rxb+ARAmtUlGmou68Ay48gX49v5yJM5qLo43y5utpHLAYtH7rBBWW/U ZQ/+WKdX/60SG5hj0TDkv6FEEnBqg5obQVzexmN0DEg5Gz0tcut2oy3g6C0NfdxdWJvm baxA== X-Gm-Message-State: ALyK8tLyRc6++Y5qnMeRKXTcIkNm7i8SqwNSd3xk4H2F5+wnR5ZdEzar5FiDj+VdVdhOwg== X-Received: by 10.140.145.82 with SMTP id 79mr32636884qhr.95.1464710135342; Tue, 31 May 2016 08:55:35 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id k61sm11211721qtd.5.2016.05.31.08.55.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:55:34 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:55:29 -0400 Message-Id: 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 05/11] ALSA: cs4231: 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/cs423x/cs4231.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/cs423x/cs4231.c b/sound/isa/cs423x/cs4231.c index 282cd75..ef7448e 100644 --- a/sound/isa/cs423x/cs4231.c +++ b/sound/isa/cs423x/cs4231.c @@ -186,15 +186,4 @@ static struct isa_driver snd_cs4231_driver = { } }; -static int __init alsa_card_cs4231_init(void) -{ - return isa_register_driver(&snd_cs4231_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_cs4231_exit(void) -{ - isa_unregister_driver(&snd_cs4231_driver); -} - -module_init(alsa_card_cs4231_init); -module_exit(alsa_card_cs4231_exit); +module_isa_driver(snd_cs4231_driver, SNDRV_CARDS);