Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1521623 > unrolled thread
| Started by | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| First post | 2016-11-14 14:00 +0100 |
| Last post | 2016-11-15 10:40 +0100 |
| Articles | 5 — 3 participants |
Back to article view | Back to linux.kernel
[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
| From | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| Date | 2016-11-14 14:00 +0100 |
| Subject | [PATCH] gpio: intel-mid: use builtin_pci_driver |
| Message-ID | <sDp1D-77j-7@gated-at.bofh.it> |
Use builtin_pci_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
drivers/gpio/gpio-intel-mid.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c
index 164de64..a1e44c2 100644
--- a/drivers/gpio/gpio-intel-mid.c
+++ b/drivers/gpio/gpio-intel-mid.c
@@ -421,9 +421,4 @@ static struct pci_driver intel_gpio_driver = {
},
};
-static int __init intel_gpio_init(void)
-{
- return pci_register_driver(&intel_gpio_driver);
-}
-
-device_initcall(intel_gpio_init);
+builtin_pci_driver(intel_gpio_driver);
--
2.9.3
[toc] | [next] | [standalone]
| From | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| Date | 2016-11-14 14:00 +0100 |
| Subject | [PATCH] xen-platform: use builtin_pci_driver |
| Message-ID | <sDp1D-77j-9@gated-at.bofh.it> |
| In reply to | #1521623 |
Use builtin_pci_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.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);
--
2.9.3
[toc] | [prev] | [next] | [standalone]
| From | Juergen Gross <jgross@suse.com> |
|---|---|
| Date | 2016-11-15 07:50 +0100 |
| Subject | Re: [PATCH] xen-platform: use builtin_pci_driver |
| Message-ID | <sDFJ8-1pY-5@gated-at.bofh.it> |
| In reply to | #1521624 |
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);
>
[toc] | [prev] | [next] | [standalone]
| From | Juergen Gross <jgross@suse.com> |
|---|---|
| Date | 2016-11-17 18:40 +0100 |
| Subject | Re: [PATCH] xen-platform: use builtin_pci_driver |
| Message-ID | <sEyPh-3IB-47@gated-at.bofh.it> |
| In reply to | #1521624 |
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>
Applied to xen/tip.git for-linus-4.10
Juergen
> ---
> 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);
>
[toc] | [prev] | [next] | [standalone]
| From | Linus Walleij <linus.walleij@linaro.org> |
|---|---|
| Date | 2016-11-15 10:40 +0100 |
| Message-ID | <sDInD-371-3@gated-at.bofh.it> |
| In reply to | #1521623 |
On Mon, Nov 14, 2016 at 1:52 PM, Geliang Tang <geliangtang@gmail.com> wrote: > Use builtin_pci_driver() helper to simplify the code. > > Signed-off-by: Geliang Tang <geliangtang@gmail.com> Patch applied. Yours, Linus Walleij
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web