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: 35581 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bP9px-0007st-0g; Mon, 18 Jul 2016 14:48:01 +0000 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.84_2/mailfrontend-8) with esmtp id 1bP9pv-0008Sj-jI; Mon, 18 Jul 2016 16:48:00 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752165AbcGROr1 (ORCPT + 1 other); 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-PMX-Version: 6.0.0.2142326, Antispam-Engine: 2.7.2.2107409, Antispam-Data: 2016.7.18.143617 X-PMX-Spam: Gauge=IIIIIIIII, Probability=9%, Report=' FORGED_FROM_GMAIL 0.1, MULTIPLE_RCPTS 0.1, HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1100_1199 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, DATE_TZ_NA 0, DKIM_SIGNATURE 0, FROM_NAME_PHRASE 0, IN_REP_TO 0, LEGITIMATE_NEGATE 0, MSG_THREAD 0, MULTIPLE_RCPTS_RND 0, NO_URI_HTTPS 0, REFERENCES 0, SINGLE_URI_IN_BODY 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_URI_IN_BODY 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_CC_HDR 0, __HAS_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __IN_REP_TO 0, __MIME_TEXT_ONLY 0, __MULTIPLE_RCPTS_CC_X2 0, __PHISH_SPEAR_STRUCTURE_1 0, __REFERENCES 0, __SANE_MSGID 0, __SINGLE_URI_TEXT 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_IN_BODY 0, __URI_NO_WWW 0, __URI_NS , __URI_WITH_PATH 0, __YOUTUBE_RCVD 0' 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);