From patchwork Mon Jul 18 14:46:30 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: 9234759 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 E100760756 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 D3CDE26C2F for ; Mon, 18 Jul 2016 14:47:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C892826D08; 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 8049426C2F for ; Mon, 18 Jul 2016 14:47:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752089AbcGROqk (ORCPT ); Mon, 18 Jul 2016 10:46:40 -0400 Received: from mail-qk0-f196.google.com ([209.85.220.196]:36674 "EHLO mail-qk0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751592AbcGROqh (ORCPT ); Mon, 18 Jul 2016 10:46:37 -0400 Received: by mail-qk0-f196.google.com with SMTP id q8so11206630qke.3; Mon, 18 Jul 2016 07:46:37 -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=yiiwn94ggfoodLzEHjKnvNuoE5J8EU/Itz0PkhBDjDU=; b=a/Jzqn9ti5Zokno9pSvkYvnXKqsUtL06xEsBKNKRBqmtmVvco0nE5UdJm7xN8rB846 tecGfSKwna+OunjpeJGVjbtqXpNKnteeSqn6rVCBHvPAGsco4LAXhG7W8C0BDL5V0WsP hoj0azG374+hDnofSJ+D6Lg0hRuDWmCcOO8RPP847wp5GeSGOZEOqf+Pmy/CTw/r9Mfn jcErt/ERxbONPkf3YnOfEBsuEX/p+nQ+m9CPk3UXZOdSyLHEzzVSkltBRPtF1pP/k5bi 6QDuAJV8zxT30LGXWeFCAp00Don6zxqigrrRfrTfFkThNFDjH1XlpERDL8RhPZrSIjgx 3TrQ== 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=yiiwn94ggfoodLzEHjKnvNuoE5J8EU/Itz0PkhBDjDU=; b=eNMKUgVglcwndg0kYZB6N6XKGj6fjpBQzSpoXhKDviGjG1KxPNoH+3ZG4JwqimtwgY PErLoAIkzwNqSJ2hhc/vAK1hOQu7RMs/QKLkjKDGhLCXNBK9MiyuhzG+8bVmC5ndcUvN fcJftnMQjQeDQwl2GUjKy3RGQyQkZ57TOn0nzUR6vFjj6cTBmm40indQFE3lgJZmmL+4 MSvqlDJZbDU+E8bMG0+kE3ey2Kvzuk4mJlTFgjWoDAeFJ2AEInOb3CI3iSgjPhhzFgKl KQADX3ZYOcZLJyHkuqYMLEGW5RpsFj/mYeFmuZgtHR0l1Iz3JShI/gGaDFdkor2YkhJP dzUw== X-Gm-Message-State: ALyK8tKLR9uQRSobWNdXE0Gg5pcCCULpM8DxQfm/TjubVBazFiIlz4nB5zRbgTG2P81CxQ== X-Received: by 10.55.191.129 with SMTP id p123mr45228514qkf.1.1468853196729; Mon, 18 Jul 2016 07:46:36 -0700 (PDT) Received: from localhost (72-188-105-41.res.bhn.net. [72.188.105.41]) by smtp.gmail.com with ESMTPSA id f94sm3868479qtb.13.2016.07.18.07.46.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 07:46:36 -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 4/6] radio: zoltrix: Utilize the module_isa_driver macro Date: Mon, 18 Jul 2016 10:46:30 -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-zoltrix.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c index 026e88e..597da26 100644 --- a/drivers/media/radio/radio-zoltrix.c +++ b/drivers/media/radio/radio-zoltrix.c @@ -233,16 +233,4 @@ static struct radio_isa_driver zoltrix_driver = { .max_volume = 15, }; -static int __init zoltrix_init(void) -{ - return isa_register_driver(&zoltrix_driver.driver, ZOLTRIX_MAX); -} - -static void __exit zoltrix_exit(void) -{ - isa_unregister_driver(&zoltrix_driver.driver); -} - -module_init(zoltrix_init); -module_exit(zoltrix_exit); - +module_isa_driver(zoltrix_driver.driver, ZOLTRIX_MAX);