From patchwork Mon Jul 18 14:46:07 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: 9234751 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 91ED360756 for ; Mon, 18 Jul 2016 14:46:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84B7F26C9B for ; Mon, 18 Jul 2016 14:46:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 707A726E1A; Mon, 18 Jul 2016 14:46:26 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25DEF26E39 for ; Mon, 18 Jul 2016 14:46:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752011AbcGROqS (ORCPT ); Mon, 18 Jul 2016 10:46:18 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:36303 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbcGROqP (ORCPT ); Mon, 18 Jul 2016 10:46:15 -0400 Received: by mail-qt0-f194.google.com with SMTP id u25so7095439qtb.3; Mon, 18 Jul 2016 07:46:15 -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=Z9jIV6f5vk+rXLitM0pNALd0qthukI7QIZ0iou634/U=; b=AtakXhA8LaNoAawcTN9+2J8s+ZRpSVmDAh2gabArDsc5qsJ2A0qgfnmPAkapqxUpaS Jk4DyAUqHqnNr/Wrl9mpXoQDVqZi/D+qN92TI/tYxdbUONCJdtcNtC9Rer27B7kRDxyt rVNSeWF7BUfULPQj0WoH084Y7vfeLWAgfp5hxTFpSt+Xr9dZyjEG96s1VMWdinkVgaKg XeYVWcOA/ZQbUQNwe4wCTr0bT8Oee2uIEz+8wCO9RPysUhFbyGPPExHN8XnhniFSPPxo EuKJTjqmWTI5QIXv5FhWtwDGA+4758c7/H6lhKVIKBxi1EYPpj56eo1/4ySERYPoktDN zmKQ== 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=Z9jIV6f5vk+rXLitM0pNALd0qthukI7QIZ0iou634/U=; b=Zozvm6n5IR11KaWxfm9HB7xvXnPzA231plxzTswT4xPmtHciLHG+WqNlX0z7dhY+o6 B2nMHgpWhQmykewKBxnarYUSGmKxXUqeigifa/AzgQpHMF6KbE2Dtm1pYiIEhzicatP+ Z6lwXLwp4j7JDfe+u2zUWi0nUc46mIxA0ZeUn/XjK54ngP9P4Msq53UcUUvDTXQwlAJ7 AIl3SN18W0ZqEr//a7p/8w7u741owZNCkKQKMt/1kkculn0cdOIcRGQ3ibeiaiBDYd4B RpVg4cTVnD0iJNdDU1hF9JXA4s3VQ+gkH0Q15/WdX6RWGN1tpi7L0Ci5O4/xU8lKjtMR Ndvg== X-Gm-Message-State: ALyK8tKq0L6EDGrb3pviFfJ1h/ud1EPhyTm+GrD0a+S4/Lvcs95GDJqP70W9guEH6I5K0w== X-Received: by 10.200.56.253 with SMTP id g58mr52202584qtc.28.1468853174396; Mon, 18 Jul 2016 07:46:14 -0700 (PDT) Received: from localhost (72-188-105-41.res.bhn.net. [72.188.105.41]) by smtp.gmail.com with ESMTPSA id 59sm1576345qtb.21.2016.07.18.07.46.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 07:46:13 -0700 (PDT) From: William Breathitt Gray To: mchehab@osg.samsung.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, William Breathitt Gray Subject: [PATCH 2/6] radio: rtrack2: Utilize the module_isa_driver macro Date: Mon, 18 Jul 2016 10:46:07 -0400 Message-Id: X-Mailer: git-send-email 2.7.3 In-Reply-To: References: Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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 --- drivers/media/radio/radio-rtrack2.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/media/radio/radio-rtrack2.c b/drivers/media/radio/radio-rtrack2.c index 09cfbc3..82b8794 100644 --- a/drivers/media/radio/radio-rtrack2.c +++ b/drivers/media/radio/radio-rtrack2.c @@ -127,15 +127,4 @@ static struct radio_isa_driver rtrack2_driver = { .has_stereo = true, }; -static int __init rtrack2_init(void) -{ - return isa_register_driver(&rtrack2_driver.driver, RTRACK2_MAX); -} - -static void __exit rtrack2_exit(void) -{ - isa_unregister_driver(&rtrack2_driver.driver); -} - -module_init(rtrack2_init); -module_exit(rtrack2_exit); +module_isa_driver(rtrack2_driver.driver, RTRACK2_MAX);