* [PATCH -next] PCI: altera: Use builtin_platform_driver to simplify the code
@ 2016-09-10 12:31 Wei Yongjun
2016-11-11 21:21 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-09-10 12:31 UTC (permalink / raw)
To: Ley Foon Tan, Bjorn Helgaas; +Cc: Wei Yongjun, rfi, linux-pci
From: Wei Yongjun <weiyongjun1@huawei.com>
Use the builtin_platform_driver() macro to make the code simpler.
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
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 48f2736..ea33e8f 100644
--- a/drivers/pci/host/pcie-altera.c
+++ b/drivers/pci/host/pcie-altera.c
@@ -581,8 +581,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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] PCI: altera: Use builtin_platform_driver to simplify the code
2016-09-10 12:31 [PATCH -next] PCI: altera: Use builtin_platform_driver to simplify the code Wei Yongjun
@ 2016-11-11 21:21 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2016-11-11 21:21 UTC (permalink / raw)
To: Wei Yongjun; +Cc: Ley Foon Tan, Bjorn Helgaas, Wei Yongjun, rfi, linux-pci
On Sat, Sep 10, 2016 at 12:31:01PM +0000, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Use the builtin_platform_driver() macro to make the code simpler.
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Applied to pci/host-altera for v4.10, thanks!
> ---
> 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 48f2736..ea33e8f 100644
> --- a/drivers/pci/host/pcie-altera.c
> +++ b/drivers/pci/host/pcie-altera.c
> @@ -581,8 +581,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);
>
>
>
> --
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-11-11 21:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-10 12:31 [PATCH -next] PCI: altera: Use builtin_platform_driver to simplify the code Wei Yongjun
2016-11-11 21:21 ` Bjorn Helgaas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.