From patchwork Mon Jul 18 14:46:19 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: 35578 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 1bP9p1-0007op-Eh; Mon, 18 Jul 2016 14:47:03 +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-5) with esmtp id 1bP9oz-0006dQ-6V; Mon, 18 Jul 2016 16:47:03 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751968AbcGROq2 (ORCPT + 1 other); Mon, 18 Jul 2016 10:46:28 -0400 Received: from mail-qk0-f195.google.com ([209.85.220.195]:34225 "EHLO mail-qk0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbcGROq0 (ORCPT ); Mon, 18 Jul 2016 10:46:26 -0400 Received: by mail-qk0-f195.google.com with SMTP id p126so6804424qke.1; Mon, 18 Jul 2016 07:46:26 -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=sg5sRE+BHif2IzVAbZPW3U6kCt5LBj78tU015aJKAzA=; b=PZ1bUZZAp/QIft5vPUhprEa/lHTJqEg0X+J+gS1HtmvZHvwiCk8X2LH+peYNgg3/hh uw0zFs2jd4xyuU34vPiOgCfxgtCXNGnhjj7IMS39ekvUgmsEejlZftQZtAPIFrAyxLN8 SC6XdaMopX9xgL5cgxA9dWfZfYH7mAnrU1HOEK9qJyb0+/N90R6GdVFTyR6b2r8Wat32 +tJiAqPJuDFV25/4kot0Hw9AhrTBpDg41He4gFBnr4pgtKYeHem7PxyaTsDihHrNSq35 HDncUYhCaFwFlx197wjjSZo4GhTlTJ9BmxajCWw24BgDTU1z8geK5BvVW/ihZ8KpJ2wF qwuA== 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=sg5sRE+BHif2IzVAbZPW3U6kCt5LBj78tU015aJKAzA=; b=Ym/6CPryRhwQmMarzR3Qcw9c484JkFY4+ETb3kPulI1dEzbzeijPjzJj/jNC2PieKl VbFsfiIt3eo7UWv34b+eyt5BZaKMTbagJR4u7ucsPfmmxGGSC4n8BvQUPDDlCVopIJ9Z JHBqGY79cEbHmUyq44w3J1smqVAMJcSCk+m0P8pgwLL0QVAcQ17a3s6Q+yKhFxgA69NJ bSSgEIC3UuPZsBUIBifiRRRBmrP6z2V1uJk78UDaFI0OP1XiwRCpJqIcIV96FpbKedjM Czq+8XOdrmW3lQJPUeBDcYHujzLBjbOylzfxmM1lU8itvhk0KFWSW2y3Wcm8Wjt6KOaE xXgw== X-Gm-Message-State: ALyK8tJQTB0GYaTBdiYkYMVPAaPYETznLAxpH/LffV/AHnxsjvf7Pm7kfGYEWepNHrImYw== X-Received: by 10.55.134.3 with SMTP id i3mr24190746qkd.74.1468853185752; Mon, 18 Jul 2016 07:46:25 -0700 (PDT) Received: from localhost (72-188-105-41.res.bhn.net. [72.188.105.41]) by smtp.gmail.com with ESMTPSA id v19sm1565374qkl.22.2016.07.18.07.46.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 07:46:25 -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 3/6] radio: trust: Utilize the module_isa_driver macro Date: Mon, 18 Jul 2016 10:46:19 -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-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. Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-trust.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/media/radio/radio-trust.c b/drivers/media/radio/radio-trust.c index 26a8c60..e4bec5e 100644 --- a/drivers/media/radio/radio-trust.c +++ b/drivers/media/radio/radio-trust.c @@ -229,15 +229,4 @@ static struct radio_isa_driver trust_driver = { .max_volume = 31, }; -static int __init trust_init(void) -{ - return isa_register_driver(&trust_driver.driver, TRUST_MAX); -} - -static void __exit trust_exit(void) -{ - isa_unregister_driver(&trust_driver.driver); -} - -module_init(trust_init); -module_exit(trust_exit); +module_isa_driver(trust_driver.driver, TRUST_MAX);