From patchwork Tue Jun 16 22:43:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Malcolm Priestley X-Patchwork-Id: 6620881 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5CB76C0020 for ; Tue, 16 Jun 2015 22:43:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8719B207D5 for ; Tue, 16 Jun 2015 22:43:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B57FC207D1 for ; Tue, 16 Jun 2015 22:43:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757272AbbFPWng (ORCPT ); Tue, 16 Jun 2015 18:43:36 -0400 Received: from mail-wg0-f46.google.com ([74.125.82.46]:35225 "EHLO mail-wg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754853AbbFPWnd (ORCPT ); Tue, 16 Jun 2015 18:43:33 -0400 Received: by wgbhy7 with SMTP id hy7so23046852wgb.2 for ; Tue, 16 Jun 2015 15:43:32 -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=E6uB/+1/0qCEv5cmx8j45Zm0aQmEY4TUI/4AUmzALH8=; b=ZuSzKyVt5M0o88zmNRz79w8ZgmZ50nnaA2TeIrc11TcqBsxH+1RBorC0tUe2PJlLdk FaRPTY4e+5pmCsNSuK/Yr7JDfrAs2g3AGkI9m55RZBRj7/8R/5Ovh0vs/TgX3/LpUr+E DW1x3pFsP3/NfDe4DFv7aEDf+DECIcam+Wqs+ZRn+73aZMTn8IG+QAoQsLQUazUfcVLJ sKvUOskz/Ko+yct+oeq2UsnAc4l3Yl1EYzc+WQDDSplTuTXRVjz2V/RqXSIInUAtVabl IHL1cUUwlgwdW/3F3n2/Iw9lqjJElIUV4qOZ9gyLxP3ndkN0/hexQtSqeiWV2J7N6689 RKOQ== X-Received: by 10.180.89.234 with SMTP id br10mr11662717wib.86.1434494612537; Tue, 16 Jun 2015 15:43:32 -0700 (PDT) Received: from tipsey.3.home (188.30.110.230.threembb.co.uk. [188.30.110.230]) by mx.google.com with ESMTPSA id n6sm4656606wic.16.2015.06.16.15.43.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Jun 2015 15:43:31 -0700 (PDT) From: Malcolm Priestley To: gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, Malcolm Priestley Subject: [PATCH 2/2] staging: vt6655: use module_pci_driver helper Date: Tue, 16 Jun 2015 23:43:12 +0100 Message-Id: <1434494592-2639-2-git-send-email-tvboxspy@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1434494592-2639-1-git-send-email-tvboxspy@gmail.com> References: <1434494592-2639-1-git-send-email-tvboxspy@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove vt6655_init_module and vt6655_cleanup_module and replace module_pci_driver Signed-off-by: Malcolm Priestley --- drivers/staging/vt6655/device_main.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c index c393b73..0bfc939 100644 --- a/drivers/staging/vt6655/device_main.c +++ b/drivers/staging/vt6655/device_main.c @@ -1878,19 +1878,4 @@ static struct pci_driver device_driver = { #endif }; -static int __init vt6655_init_module(void) -{ - int ret; - - ret = pci_register_driver(&device_driver); - - return ret; -} - -static void __exit vt6655_cleanup_module(void) -{ - pci_unregister_driver(&device_driver); -} - -module_init(vt6655_init_module); -module_exit(vt6655_cleanup_module); +module_pci_driver(device_driver);