From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933349AbcKNMwl (ORCPT ); Mon, 14 Nov 2016 07:52:41 -0500 Received: from mail-pg0-f65.google.com ([74.125.83.65]:36499 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753772AbcKNMwd (ORCPT ); Mon, 14 Nov 2016 07:52:33 -0500 From: Geliang Tang To: Boris Ostrovsky , David Vrabel , Juergen Gross Cc: Geliang Tang , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH] xen-platform: use builtin_pci_driver Date: Mon, 14 Nov 2016 20:52:26 +0800 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: <1f356ef29486a21e77e00997bcc82b300d0512d6.1479127743.git.geliangtang@gmail.com> References: <1f356ef29486a21e77e00997bcc82b300d0512d6.1479127743.git.geliangtang@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use builtin_pci_driver() helper to simplify the code. Signed-off-by: Geliang Tang --- drivers/xen/platform-pci.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/xen/platform-pci.c b/drivers/xen/platform-pci.c index b59c9455..112ce42 100644 --- a/drivers/xen/platform-pci.c +++ b/drivers/xen/platform-pci.c @@ -125,8 +125,4 @@ static struct pci_driver platform_driver = { .id_table = platform_pci_tbl, }; -static int __init platform_pci_init(void) -{ - return pci_register_driver(&platform_driver); -} -device_initcall(platform_pci_init); +builtin_pci_driver(platform_driver); -- 2.9.3