From patchwork Mon May 27 02:28:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Libo Chen X-Patchwork-Id: 2617361 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 2193BDFB79 for ; Mon, 27 May 2013 02:31:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756055Ab3E0C3O (ORCPT ); Sun, 26 May 2013 22:29:14 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:23101 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756028Ab3E0C3I (ORCPT ); Sun, 26 May 2013 22:29:08 -0400 Received: from 172.24.2.119 (EHLO szxeml211-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id BCT12733; Mon, 27 May 2013 10:29:03 +0800 (CST) Received: from szxeml459-hub.china.huawei.com (10.82.67.202) by szxeml211-edg.china.huawei.com (172.24.2.182) with Microsoft SMTP Server (TLS) id 14.1.323.7; Mon, 27 May 2013 10:29:04 +0800 Received: from localhost (10.135.72.158) by szxeml459-hub.china.huawei.com (10.82.67.202) with Microsoft SMTP Server id 14.1.323.7; Mon, 27 May 2013 10:28:54 +0800 From: Libo Chen To: CC: , , , , Subject: [PATCH 09/24] drivers/pci/ioapic: Convert to module_pci_driver Date: Mon, 27 May 2013 10:28:53 +0800 Message-ID: <1369621733-20048-1-git-send-email-libo.chen@huawei.com> X-Mailer: git-send-email 1.8.1.msysgit.1 MIME-Version: 1.0 X-Originating-IP: [10.135.72.158] X-CFilter-Loop: Reflected Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org use module_pci_driver instead of init/exit, make code clean. Signed-off-by: Libo Chen --- drivers/pci/ioapic.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/drivers/pci/ioapic.c b/drivers/pci/ioapic.c index 3c6bbdd..1b90579 100644 --- a/drivers/pci/ioapic.c +++ b/drivers/pci/ioapic.c @@ -113,17 +113,6 @@ static struct pci_driver ioapic_driver = { .remove = ioapic_remove, }; -static int __init ioapic_init(void) -{ - return pci_register_driver(&ioapic_driver); -} - -static void __exit ioapic_exit(void) -{ - pci_unregister_driver(&ioapic_driver); -} - -module_init(ioapic_init); -module_exit(ioapic_exit); +module_pci_driver(ioapic_driver); MODULE_LICENSE("GPL");