From patchwork Mon Jul 18 14:46:42 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: 9234765 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 AA97360756 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 9ABC826CF9 for ; Mon, 18 Jul 2016 14:47:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C9FE26D19; 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 316B026C2F for ; Mon, 18 Jul 2016 14:47:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751592AbcGROrU (ORCPT ); Mon, 18 Jul 2016 10:47:20 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:35586 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751441AbcGROrT (ORCPT ); Mon, 18 Jul 2016 10:47:19 -0400 Received: by mail-qt0-f193.google.com with SMTP id q11so7101433qtb.2; Mon, 18 Jul 2016 07:47:05 -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=GgOffIxQaUujdaLen1uOgr7i2I9IjK6KFXxXtxKhGvc=; b=uB32lyB6DlzpbZ6rK9W2wrdE/DwC857SPlY7x7co1PfMHpdVN/4hqBezKPK34qWS+2 1aE2QkYdXzQlfjMT6jq+OiauiGyWoZVeMLddgXRwYPNSZo8eoRRZN9SeMM3tWBKOqA+a agCq/BbnOXpWOBUOmaZEDxrE5Y3rAbYaqzvQ9hX56ey0dtrBgLgGipwseEgin3lQY3FW 1SHK68M35eC8BeRmjc15sMYMl8tG4kiiUiBIqaCI/uqXpkiPaPMTMGT/RqrpTZt7wWGT E+4NQSG13osez+l8Dx3oQlFTIFPiaJJQ3OobZDaIpKnvZCE2qlLRfjEtGH8E6FB+MQg6 LLug== 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=GgOffIxQaUujdaLen1uOgr7i2I9IjK6KFXxXtxKhGvc=; b=XeTvZCMM4AC3b0q0s0DDX0YEhCWThzAD8oSxACBbrBSsoO1CHgD9zqaSwmCKQ4tDjX 0MTnQgTemedBQxT0i2YI843Y3eRjGmPVs+03c8HhQXfnS/hHzZnkXyoN4Zm2uoxExuLk vpwFjEBonT/w5mPJlKILpbl3ouPWpC+yl264s6wVEQk4jnRqEK7iHtt0BMa/+zIQfieB J9FdIchCNiYrX4ikLUIewVlvowi6bbnDASsjupPbWmv+Ov4EHLoDAgZ/t7F8mwBA4zS4 Yv3hMVNpEFIrc2N2znM9RCsuH5a5bGv++XqBVU4JlYyX5bCs5IhnPwmyBYBODWQyJQu6 6u3g== X-Gm-Message-State: ALyK8tLJ2WgR8lNNS1Y+t+Z7uRnGUCjw5bWw5eonVM7aoKs2RukbAPzQynybi9nxcQ+J6Q== X-Received: by 10.200.43.47 with SMTP id 44mr50647935qtu.66.1468853211311; Mon, 18 Jul 2016 07:46:51 -0700 (PDT) Received: from localhost (72-188-105-41.res.bhn.net. [72.188.105.41]) by smtp.gmail.com with ESMTPSA id 23sm1562928qki.1.2016.07.18.07.46.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 07:46:51 -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 5/6] radio: aztech: Utilize the module_isa_driver macro Date: Mon, 18 Jul 2016 10:46:42 -0400 Message-Id: <1d95eda3b0cc95932ee74bb1d027d5ec21efbadc.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-aztech.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c index 705dd6f..7b39655 100644 --- a/drivers/media/radio/radio-aztech.c +++ b/drivers/media/radio/radio-aztech.c @@ -147,15 +147,4 @@ static struct radio_isa_driver aztech_driver = { .max_volume = 3, }; -static int __init aztech_init(void) -{ - return isa_register_driver(&aztech_driver.driver, AZTECH_MAX); -} - -static void __exit aztech_exit(void) -{ - isa_unregister_driver(&aztech_driver.driver); -} - -module_init(aztech_init); -module_exit(aztech_exit); +module_isa_driver(aztech_driver.driver, AZTECH_MAX);