Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1522385
| From | Juergen Gross <jgross@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] xen-platform: use builtin_pci_driver |
| Date | 2016-11-15 07:50 +0100 |
| Message-ID | <sDFJ8-1pY-5@gated-at.bofh.it> (permalink) |
| References | <sDp1D-77j-7@gated-at.bofh.it> <sDp1D-77j-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 14/11/16 13:52, Geliang Tang wrote:
> Use builtin_pci_driver() helper to simplify the code.
>
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
> ---
> 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);
>
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] gpio: intel-mid: use builtin_pci_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-14 14:00 +0100
[PATCH] xen-platform: use builtin_pci_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-14 14:00 +0100
Re: [PATCH] xen-platform: use builtin_pci_driver Juergen Gross <jgross@suse.com> - 2016-11-15 07:50 +0100
Re: [PATCH] xen-platform: use builtin_pci_driver Juergen Gross <jgross@suse.com> - 2016-11-17 18:40 +0100
Re: [PATCH] gpio: intel-mid: use builtin_pci_driver Linus Walleij <linus.walleij@linaro.org> - 2016-11-15 10:40 +0100
csiph-web