linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpio: intel-mid: use builtin_pci_driver
@ 2016-11-14 12:52 Geliang Tang
  2016-11-14 12:52 ` [PATCH] xen-platform: " Geliang Tang
  2016-11-15  9:35 ` [PATCH] gpio: intel-mid: " Linus Walleij
  0 siblings, 2 replies; 5+ messages in thread
From: Geliang Tang @ 2016-11-14 12:52 UTC (permalink / raw)
  To: David Cohen, Linus Walleij, Alexandre Courbot
  Cc: Geliang Tang, linux-gpio, linux-kernel

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH] xen-platform: use builtin_pci_driver
  2016-11-14 12:52 [PATCH] gpio: intel-mid: use builtin_pci_driver Geliang Tang
@ 2016-11-14 12:52 ` Geliang Tang
  2016-11-15  6:41   ` Juergen Gross
  2016-11-17 12:49   ` Juergen Gross
  2016-11-15  9:35 ` [PATCH] gpio: intel-mid: " Linus Walleij
  1 sibling, 2 replies; 5+ messages in thread
From: Geliang Tang @ 2016-11-14 12:52 UTC (permalink / raw)
  To: Boris Ostrovsky, David Vrabel, Juergen Gross
  Cc: Geliang Tang, xen-devel, linux-kernel

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] xen-platform: use builtin_pci_driver
  2016-11-14 12:52 ` [PATCH] xen-platform: " Geliang Tang
@ 2016-11-15  6:41   ` Juergen Gross
  2016-11-17 12:49   ` Juergen Gross
  1 sibling, 0 replies; 5+ messages in thread
From: Juergen Gross @ 2016-11-15  6:41 UTC (permalink / raw)
  To: Geliang Tang, Boris Ostrovsky, David Vrabel; +Cc: xen-devel, linux-kernel

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);
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] gpio: intel-mid: use builtin_pci_driver
  2016-11-14 12:52 [PATCH] gpio: intel-mid: use builtin_pci_driver Geliang Tang
  2016-11-14 12:52 ` [PATCH] xen-platform: " Geliang Tang
@ 2016-11-15  9:35 ` Linus Walleij
  1 sibling, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2016-11-15  9:35 UTC (permalink / raw)
  To: Geliang Tang; +Cc: David Cohen, Alexandre Courbot, linux-gpio, linux-kernel

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] xen-platform: use builtin_pci_driver
  2016-11-14 12:52 ` [PATCH] xen-platform: " Geliang Tang
  2016-11-15  6:41   ` Juergen Gross
@ 2016-11-17 12:49   ` Juergen Gross
  1 sibling, 0 replies; 5+ messages in thread
From: Juergen Gross @ 2016-11-17 12:49 UTC (permalink / raw)
  To: Geliang Tang, Boris Ostrovsky, David Vrabel; +Cc: xen-devel, linux-kernel

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);
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-17 17:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-14 12:52 [PATCH] gpio: intel-mid: use builtin_pci_driver Geliang Tang
2016-11-14 12:52 ` [PATCH] xen-platform: " Geliang Tang
2016-11-15  6:41   ` Juergen Gross
2016-11-17 12:49   ` Juergen Gross
2016-11-15  9:35 ` [PATCH] gpio: intel-mid: " Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).