From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S940767AbcKOGlr (ORCPT ); Tue, 15 Nov 2016 01:41:47 -0500 Received: from mx2.suse.de ([195.135.220.15]:42069 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935408AbcKOGlq (ORCPT ); Tue, 15 Nov 2016 01:41:46 -0500 Subject: Re: [PATCH] xen-platform: use builtin_pci_driver To: Geliang Tang , Boris Ostrovsky , David Vrabel References: <1f356ef29486a21e77e00997bcc82b300d0512d6.1479127743.git.geliangtang@gmail.com> Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org From: Juergen Gross Message-ID: <4dfee675-f1b2-f617-dd29-889a956c14aa@suse.com> Date: Tue, 15 Nov 2016 07:41:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/11/16 13:52, Geliang Tang wrote: > Use builtin_pci_driver() helper to simplify the code. > > Signed-off-by: Geliang Tang Reviewed-by: Juergen Gross > --- > 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); >