Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1538065 > unrolled thread

Re: [PATCH] PCI: altera: use builtin_platform_driver

Started byBjorn Helgaas <helgaas@kernel.org>
First post2016-12-07 21:40 +0100
Last post2016-12-07 21:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] PCI: altera: use builtin_platform_driver Bjorn Helgaas <helgaas@kernel.org> - 2016-12-07 21:40 +0100

#1538065 — Re: [PATCH] PCI: altera: use builtin_platform_driver

FromBjorn Helgaas <helgaas@kernel.org>
Date2016-12-07 21:40 +0100
SubjectRe: [PATCH] PCI: altera: use builtin_platform_driver
Message-ID<sLRaq-4Se-11@gated-at.bofh.it>
On Wed, Nov 23, 2016 at 10:52:22PM +0800, Geliang Tang wrote:
> Use builtin_platform_driver() helper to simplify the code.
> 
> Signed-off-by: Geliang Tang <geliangtang@gmail.com>

Thanks, Geliang.  I already applied an identical patch from Wei Yongjun
that will appear in v4.10.

> ---
>  drivers/pci/host/pcie-altera.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/drivers/pci/host/pcie-altera.c b/drivers/pci/host/pcie-altera.c
> index b0ac4df..eefcb38 100644
> --- a/drivers/pci/host/pcie-altera.c
> +++ b/drivers/pci/host/pcie-altera.c
> @@ -641,8 +641,4 @@ static struct platform_driver altera_pcie_driver = {
>  	},
>  };
>  
> -static int altera_pcie_init(void)
> -{
> -	return platform_driver_register(&altera_pcie_driver);
> -}
> -device_initcall(altera_pcie_init);
> +builtin_platform_driver(altera_pcie_driver);
> -- 
> 2.9.3
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-pci" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web