From patchwork Mon Jul 18 14:47:17 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: 9234767 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 B413E6089D for ; Mon, 18 Jul 2016 14:47:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6E8726C2F for ; Mon, 18 Jul 2016 14:47:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BB1826E1A; Mon, 18 Jul 2016 14:47:58 +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 5298926C9B for ; Mon, 18 Jul 2016 14:47:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752165AbcGROr1 (ORCPT ); Mon, 18 Jul 2016 10:47:27 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:36853 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751441AbcGROrY (ORCPT ); Mon, 18 Jul 2016 10:47:24 -0400 Received: by mail-qk0-f193.google.com with SMTP id q8so11208244qke.3; Mon, 18 Jul 2016 07:47:24 -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=E92IP4nibV00BYdQJlVlwTXYmIgT/c7KiDyxFo0KcWA=; b=UBpuMG/1Yl6aSpD81M/Ts0Vjju0rHXaTm+CNTkz84a+2b/8DzfTr+2QA3omn7sPj9G dCXEXy13PmdtapP3+bALxtU7JsbwJLzC4T3hffhjXTUZIHTnOkLujlhTH5MlWN26RFyf 4eKBcotN5YF/BJhnALNIx8ZmOZBZdZXnmsswu0yJmDKCN6QeF6S9hmnlbIBweXB5fWoM iSouKDeHLYhTuDFUHDnxSU++Ju1G8X5K3gezlp3QHirUJQMedkRmNcFmDCBxPZmqUeQl 7ksxtKmwxJLUfO5/JpiZBE2kT2Ufx6t7RD8sny2hWMlDXISmfZbJqJDYlCIjSOfIvJfa iG1Q== 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=E92IP4nibV00BYdQJlVlwTXYmIgT/c7KiDyxFo0KcWA=; b=Bjxw7fToNhwAROzNBIvQ1VYn0FWhIaVyAXv3nkBjQpcGGB2N2+ByY4n8/edKnhs4se rPPJiq4ppEB93BV1be6brE7v4PCv2ZIep6A/IykSBAxkrgjw/jnPma0ZH/lZ9TF8ouz+ 9+ki4sKKUFRs68oDJUEDM2PxiP3y3rd5nxX+Ht5lpXVFnY9WqII9gh2fIfLAz52DXzu5 W38q3EL0qbZfuyDZOarUK+hZV/7Ioy6gzwcENxuWl5YBZhXWVZz3ul7I+Qx1pbIFbYqf 47ckYIQSzImW+ki4CimLGzwWIcnQ9Oecm8dEcYmr17u2qKNNwc7Dnmh8QB26XFrX1Cbv AkKQ== X-Gm-Message-State: ALyK8tLtSJYngg3iI3xs3v6eA66Ekb5DMP+wUhGqPep1+Ea7dorplSPO7Jn86QDQ1HZ0CQ== X-Received: by 10.55.190.199 with SMTP id o190mr22665918qkf.192.1468853243320; Mon, 18 Jul 2016 07:47:23 -0700 (PDT) Received: from localhost (72-188-105-41.res.bhn.net. [72.188.105.41]) by smtp.gmail.com with ESMTPSA id r74sm3507364qke.48.2016.07.18.07.47.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 07:47:22 -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 , Hans Verkuil Subject: [PATCH 6/6] radio: aimslab: Utilize the module_isa_driver macro Date: Mon, 18 Jul 2016 10:47:17 -0400 Message-Id: <8f4ded054bbf7dcc49f87a7ba8464e6baeb328e4.1468852798.git.vilhelm.gray@gmail.com> 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. Cc: Hans Verkuil Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-aimslab.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c index ea930879..d1566a3 100644 --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c @@ -180,15 +180,4 @@ static struct radio_isa_driver rtrack_driver = { .max_volume = 0xff, }; -static int __init rtrack_init(void) -{ - return isa_register_driver(&rtrack_driver.driver, RTRACK_MAX); -} - -static void __exit rtrack_exit(void) -{ - isa_unregister_driver(&rtrack_driver.driver); -} - -module_init(rtrack_init); -module_exit(rtrack_exit); +module_isa_driver(rtrack_driver.driver, RTRACK_MAX);