From patchwork Mon Sep 16 05:01:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2895451 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E43D7BFF05 for ; Mon, 16 Sep 2013 05:01:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EEE0E20158 for ; Mon, 16 Sep 2013 05:01:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2298020150 for ; Mon, 16 Sep 2013 05:01:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323Ab3IPFBq (ORCPT ); Mon, 16 Sep 2013 01:01:46 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:61849 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752103Ab3IPFBp (ORCPT ); Mon, 16 Sep 2013 01:01:45 -0400 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MT7000A6CLTZ680@mailout2.samsung.com> for linux-rdma@vger.kernel.org; Mon, 16 Sep 2013 14:01:44 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.50]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 05.7A.29948.8B096325; Mon, 16 Sep 2013 14:01:44 +0900 (KST) X-AuditID: cbfee691-b7f4a6d0000074fc-a8-523690b80405 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id BA.A8.05832.7B096325; Mon, 16 Sep 2013 14:01:44 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MT700A8BCMVFXC0@mmp2.samsung.com>; Mon, 16 Sep 2013 14:01:43 +0900 (KST) From: Jingoo Han To: 'Roland Dreier' Cc: 'Eli Cohen' , 'Sean Hefty' , 'Hal Rosenstock' , linux-rdma@vger.kernel.org, 'Jingoo Han' Subject: [PATCH] IB/mlx5: use module_pci_driver() Date: Mon, 16 Sep 2013 14:01:43 +0900 Message-id: <000401ceb299$d66e0d00$834a2700$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac6ymdZWv51jyswST1ijLmjDm7Y3FA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJIsWRmVeSWpSXmKPExsVy+t8zI90dE8yCDP4t4bT4djDCYuPmiYwW lxdeYrV4dqiXxWJnQwOTRfP6DSwObB47Z91l91i85yWTx6ZVnWwez6YfZvLo27KK0ePzJrkA tigum5TUnMyy1CJ9uwSujFfPjrEXXGSr+N//i6WB8RprFyMnh4SAicSbDe2MELaYxIV769m6 GLk4hASWMUq0nZvDBFPU3LiWCSIxnVHizponzBDOL0aJnXN3MYNUsQmoSXz5cpgdxBYRUJfo 77kBFmcW2MEosbyBH8QWFjCUmLN+D1gNi4CqxL+3S8FW8wrYShx8950dwhaU+DH5HgtEr5bE +p3HmSBseYnNa94CzeQAukhd4tFfXYhVehIPvv1ihygRkdj34h0jyG0SAufYJRasP84IsUtA 4tvkQywQvbISmw4wQzwmKXFwxQ2WCYxis5BsnoVk8ywkm2chWbGAkWUVo2hqQXJBcVJ6kale cWJucWleul5yfu4mRkg0TtzBeP+A9SHGZKD1E5mlRJPzgdGcVxJvaGxmZGFqYmpsZG5p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teqMe57/Kb6rVArk3Fh1peQDNl/p6s31QXNdfwsv69jfef3CxJ5 p/vPS08LXnxBqbp2s9eZnilKLMUZiYZazEXFiQD9eYlzOQMAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Use module_pci_driver() macro which makes the code smaller and simpler. Signed-off-by: Jingoo Han --- drivers/infiniband/hw/mlx5/main.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 3f831de..7303d21 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -1493,15 +1493,4 @@ static struct pci_driver mlx5_ib_driver = { .remove = remove_one }; -static int __init mlx5_ib_init(void) -{ - return pci_register_driver(&mlx5_ib_driver); -} - -static void __exit mlx5_ib_cleanup(void) -{ - pci_unregister_driver(&mlx5_ib_driver); -} - -module_init(mlx5_ib_init); -module_exit(mlx5_ib_cleanup); +module_pci_driver(mlx5_ib_driver);