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: 9234753 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 7867F60756 for ; Mon, 18 Jul 2016 14:47:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BF1426D08 for ; Mon, 18 Jul 2016 14:47:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6045E26D19; Mon, 18 Jul 2016 14:47:01 +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 0F55926C2F for ; Mon, 18 Jul 2016 14:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751968AbcGROq2 (ORCPT ); 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-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-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);