From patchwork Tue May 31 15:55:01 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: 9145089 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 A000660752 for ; Tue, 31 May 2016 15:56:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 91F3621327 for ; Tue, 31 May 2016 15:56:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 86B9227811; Tue, 31 May 2016 15:56:42 +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 0A56B21327 for ; Tue, 31 May 2016 15:56:41 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id D6C0E2669E8; Tue, 31 May 2016 17:56:40 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 8CF182666F7; Tue, 31 May 2016 17:55:37 +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 052FE266965; Tue, 31 May 2016 17:55:36 +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 725BC26645C for ; Tue, 31 May 2016 17:55:08 +0200 (CEST) Received: by mail-yw0-f193.google.com with SMTP id y6so19415846ywe.0 for ; Tue, 31 May 2016 08:55:08 -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=6DSEQFDlth+hf3sFO9++La18ZYjGuwxazk+Ak7lz37E=; b=K2six/3dNPSAI+MGUDv+HHHSVdQqrkl1+hYV0g5h3gfDEiM8ZiJO3bTkI/eT6Mx021 LdGXB8+o5KzPATPHtT8TL2hxcELWqnHL6qo/PvnZHzrFg2Gr7NAcIYXwtyiytVEOGH6V hEAscHoByriuFrZSgKCdE3azjmuHvHOqQQMxLhD9lovrdi7oT3CteSf3mjzL6g2D/tp3 E0oYQJUu48pmDrKVe1U74p/9iPtqzKOBXR5BC5FupQi5/Pan7YC7Ri5q0S6dYDQe7O8n V6biLNz36MOKVnyS3Y90ehCXY0fEsSSogGv0QAq0SZxFK9Jao2iK54Ftu0KOpfuTDo8C L/xA== 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=6DSEQFDlth+hf3sFO9++La18ZYjGuwxazk+Ak7lz37E=; b=UxtuiBkqEDGFe7K0CA+lxIH+mPZCvrxGsEMmkIF05Tp0qPxOWgO6sU4bm4nZ82+kSo /iyC6IF4sBa2TY9bPUuP/5Wly1BaKUK6N1OsmR0YDU67OflPjCFN4WbCeBEYiu32EfEg gn83FeHm46d4UsoYMqRLE2y5wyShsczeQNGvo7KWgSHJRT1kKIwAym/o0oKmx2KmDjHF BO84nK4iXPCvl+fbVVYVdVq9YI0dg6eeRHclFQpDNshjclO1xTtn7mlUMBva3ZTxrmIg 9jgwYqNopARTr1M3Y+W1RISZEbZdbsSRf4gVBgg5KM34lukrUtkYBUH+Auk9i79C3DpK k8fQ== X-Gm-Message-State: ALyK8tLT02R5HxdXIoCymEvc1yJI4HZjtOCc6BoyxG4rwX1Ec5T8X2Pmokkc/9T9xg0bSw== X-Received: by 10.129.104.195 with SMTP id d186mr20243997ywc.287.1464710107915; Tue, 31 May 2016 08:55:07 -0700 (PDT) Received: from localhost (71-47-58-73.res.bhn.net. [71.47.58.73]) by smtp.gmail.com with ESMTPSA id c191sm14603452ywb.37.2016.05.31.08.55.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 May 2016 08:55:07 -0700 (PDT) From: William Breathitt Gray To: perex@perex.cz, tiwai@suse.com Date: Tue, 31 May 2016 11:55:01 -0400 Message-Id: <9eaa96c6c96de1275fc575683e4dee7ddd7bfb6d.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 03/11] ALSA: ad1848: 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/ad1848/ad1848.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/sound/isa/ad1848/ad1848.c b/sound/isa/ad1848/ad1848.c index f159da4e..a302d1f 100644 --- a/sound/isa/ad1848/ad1848.c +++ b/sound/isa/ad1848/ad1848.c @@ -170,15 +170,4 @@ static struct isa_driver snd_ad1848_driver = { } }; -static int __init alsa_card_ad1848_init(void) -{ - return isa_register_driver(&snd_ad1848_driver, SNDRV_CARDS); -} - -static void __exit alsa_card_ad1848_exit(void) -{ - isa_unregister_driver(&snd_ad1848_driver); -} - -module_init(alsa_card_ad1848_init); -module_exit(alsa_card_ad1848_exit); +module_isa_driver(snd_ad1848_driver, SNDRV_CARDS);