From patchwork Tue May 31 15:56:28 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: 9145109 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 D02CD60752 for ; Tue, 31 May 2016 16:02:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C24282040D for ; Tue, 31 May 2016 16:02:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B72F027811; Tue, 31 May 2016 16:02:37 +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 52BF22040D for ; Tue, 31 May 2016 16:02:36 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 68AAB2668F3; Tue, 31 May 2016 18:02:35 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id CF54A266A88; Tue, 31 May 2016 17:58: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 6129F265FAE; Tue, 31 May 2016 17:58: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 CC079266949 for ; Tue, 31 May 2016 17:56:35 +0200 (CEST) Received: by mail-yw0-f195.google.com with SMTP id n16so19467177ywd.2 for ; Tue, 31 May 2016 08:56: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=i9Ny0mCDZ1PcYwDnaCGrfA71n0UpNeSmxxlbcnuT66Y=; b=vnE7rRz31DF+f+Qtn4xjSTsP2TlyTdUz21nIfFz/45XlViSsa1LpRfKN/nL9MQfg29 ygLtVIL4ypy77IVzpZqQEFEw7ZH9zCh1uCvr3bo39INCz91T/CCpxTo2loBMgh6PmIYe ASuCK+75NLV0Yzg9xzZoeVZaE3f11H/lRwMquiahxSYGPXmIuZBG84yIPDNbYEQvod/V AUrfv0LblNkD3CJoFHLZ+Vwb4h0gt01PVUja143wZA2bI7yozOvGhmDqtZcYjkJ3ECQc W8mNCD132SYg4A/G/8uBYiZkFsLGcExH48F7BAP0ntNOZdNj39rmISnX6bjX8i7dkik0 cBAA== 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=i9Ny0mCDZ1PcYwDnaCGrfA71n0UpNeSmxxlbcnuT66Y=; b=DVK7AsbLYANhQMQ/35PDQ/0K59zKuSMRHYh2wqT2EAMLrci/aXVGh2jzENvaLn+IiF TZd9lv4g/JvjoL18dlsKPMlyBk10ndMqIdS0QxETDZO1NVSZPxauyaOMd8aC/7V8YJKS dethrpw5P99X149kkS5s8r+rb9kvjLeRP6LNkzYmqI6O8jH96lH7rmHkD44tefbudcPd aru+X2H8juIF8HFGKn5nOFE2rISFCSzSDh0p0DI5eQSXYkajewUplwLATvQlrGESIp9c b9GZbiElH+z69LC2SM8Viava8OBrdcArdMYACkTimA2bPF9yealcD+Uh5jZ0I/5q5QaB O1+w== X-Gm-Message-State: ALyK8tL63ehNtrfwce9ZGDDDdQrb6ZjTeagiqxw3USN4hXZJ4J6Ps9schU3btMZsxGr62A== X-Received: by 10.13.221.142 with SMTP id g136mr20323974ywe.238.1464710194782; Tue, 31 May 2016 08:56:34 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id x202sm16725340ywg.16.2016.05.31.08.56.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:56:34 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:56:28 -0400 Message-Id: <430c8cb49ecb2b0247c61daa05caf68bd6d572eb.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 09/11] ALSA: sc6000: 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/sc6000.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/sc6000.c b/sound/isa/sc6000.c index 51cfa76..b61a663 100644 --- a/sound/isa/sc6000.c +++ b/sound/isa/sc6000.c @@ -711,15 +711,4 @@ static struct isa_driver snd_sc6000_driver = { }; -static int __init alsa_card_sc6000_init(void) -{ - return isa_register_driver(&snd_sc6000_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_sc6000_exit(void) -{ - isa_unregister_driver(&snd_sc6000_driver); -} - -module_init(alsa_card_sc6000_init) -module_exit(alsa_card_sc6000_exit) +module_isa_driver(snd_sc6000_driver, SNDRV_CARDS);