From patchwork Mon Jul 18 14:45:35 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: 9234745 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 2E53760756 for ; Mon, 18 Jul 2016 14:46:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 219F826D19 for ; Mon, 18 Jul 2016 14:46:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1428726C9B; Mon, 18 Jul 2016 14:46:26 +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 B78BD26C9B for ; Mon, 18 Jul 2016 14:46:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751903AbcGROp6 (ORCPT ); Mon, 18 Jul 2016 10:45:58 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:36248 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751881AbcGROp4 (ORCPT ); Mon, 18 Jul 2016 10:45:56 -0400 Received: by mail-qt0-f196.google.com with SMTP id u25so7095035qtb.3; Mon, 18 Jul 2016 07:45:55 -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=du8dqi2Fq59E/6ov1BaO+myNhOI4ESyvUppks294eDg=; b=xUyLtifRBSAa4+TPM2bqo73+/FBu4wn9jkbvzLn/Odmx15sBRmY8sLgVIRZYzAxHc+ mHLOurzbbYlRwK6aRP+DlxDkSUt/G7Jqlax+ZV1M6X2jEuq9mBWktZYYiaAVY+ZD0EgH 0cmmiO9sOxDkDMw4eOYInKR1Kj49GaA8UQXGdcfQhXj30yMPol3QP2njcAeRi0urKKtD fnep5HZCOOcY1ZdwZS4Ku/vuOTmtMu2wij3JRkyiiFCqtZNMBmgctC2+feeSpRTJSHD9 eXzmHmH07i7tzeWikRvPth46MDPNKAys481tiHcgkeIGDhqes3scd+6qo0lfR02mQHq5 b7Gg== 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=du8dqi2Fq59E/6ov1BaO+myNhOI4ESyvUppks294eDg=; b=ODNqerUeLgzW2Ox/FgCXWTF51LbUWXv4V57fFD1kARNUqAZ1y0C0jo/Z4JuNb+jUaF Y7eZ/pToSnIE/2aaSuBSngTKo9ofVeL0akdiMLCcPRYnOP22wc8VXBKtj40psbP1gpMq qaAnqI75RRu3BYbT68ZhtOJ/Mw1a1qaOD65WEkFUyJ1t5GcYS3eRdUxrN88F7Z16hlcg dd73PeiLpIl4a2+5FkjlnRb0C7rpL8wg+GyZax18S5jaSnu1miE8SvgwziYJV6otltmY oEirG74nk7D6UxY2qtT7zzWxmTuJ/qOYuRcXTjMtLWYNLtEg70JUmpBUFdxwEh9GWgJx Cl/w== X-Gm-Message-State: ALyK8tK/6BUtTYjwFSYs+wn3Hn2uutKXK55SrRN0zl2XcwQKymbNO2t5oYiPs3VKSkKB5w== X-Received: by 10.237.59.161 with SMTP id r30mr49893325qte.22.1468853141402; Mon, 18 Jul 2016 07:45:41 -0700 (PDT) Received: from localhost (72-188-105-41.res.bhn.net. [72.188.105.41]) by smtp.gmail.com with ESMTPSA id 49sm76220qtn.16.2016.07.18.07.45.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jul 2016 07:45:40 -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 1/6] radio: terratec: Utilize the module_isa_driver macro Date: Mon, 18 Jul 2016 10:45:35 -0400 Message-Id: <7cf0d0cbfcaf6cb1e0538755ebec0096ac054f83.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. Signed-off-by: William Breathitt Gray --- drivers/media/radio/radio-terratec.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c index be10a80..621bbb2 100644 --- a/drivers/media/radio/radio-terratec.c +++ b/drivers/media/radio/radio-terratec.c @@ -155,16 +155,4 @@ static struct radio_isa_driver terratec_driver = { .max_volume = 10, }; -static int __init terratec_init(void) -{ - return isa_register_driver(&terratec_driver.driver, 1); -} - -static void __exit terratec_exit(void) -{ - isa_unregister_driver(&terratec_driver.driver); -} - -module_init(terratec_init); -module_exit(terratec_exit); - +module_isa_driver(terratec_driver.driver, 1);