All of lore.kernel.org
 help / color / mirror / Atom feed
From: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
To: Axel Lin <axel.lin@gmail.com>
Cc: linux-kernel@vger.kernel.org,
	Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com>,
	linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to
Date: Mon, 19 Dec 2011 23:15:27 +0000	[thread overview]
Message-ID: <4EEFC58F.5020106@gmx.de> (raw)
In-Reply-To: <1323396075.3740.8.camel@phoenix>

On 12/09/2011 02:01 AM, Axel Lin wrote:
> This patch converts the drivers in drivers/video/pnx4008/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
> 
> Cc: Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Applied.


Thanks,

Florian Tobias Schandinat

> ---
>  drivers/video/pnx4008/pnxrgbfb.c |   13 +------------
>  drivers/video/pnx4008/sdum.c     |   13 +------------
>  2 files changed, 2 insertions(+), 24 deletions(-)
> 
> diff --git a/drivers/video/pnx4008/pnxrgbfb.c b/drivers/video/pnx4008/pnxrgbfb.c
> index b2252fe..6d30428 100644
> --- a/drivers/video/pnx4008/pnxrgbfb.c
> +++ b/drivers/video/pnx4008/pnxrgbfb.c
> @@ -193,17 +193,6 @@ static struct platform_driver rgbfb_driver = {
>  	.remove = rgbfb_remove,
>  };
>  
> -static int __init rgbfb_init(void)
> -{
> -	return platform_driver_register(&rgbfb_driver);
> -}
> -
> -static void __exit rgbfb_exit(void)
> -{
> -	platform_driver_unregister(&rgbfb_driver);
> -}
> -
> -module_init(rgbfb_init);
> -module_exit(rgbfb_exit);
> +module_platform_driver(rgbfb_driver);
>  
>  MODULE_LICENSE("GPL");
> diff --git a/drivers/video/pnx4008/sdum.c b/drivers/video/pnx4008/sdum.c
> index 50e0039..c5c7414 100644
> --- a/drivers/video/pnx4008/sdum.c
> +++ b/drivers/video/pnx4008/sdum.c
> @@ -856,17 +856,6 @@ static struct platform_driver sdum_driver = {
>  	.resume = sdum_resume,
>  };
>  
> -int __init sdum_init(void)
> -{
> -	return platform_driver_register(&sdum_driver);
> -}
> -
> -static void __exit sdum_exit(void)
> -{
> -	platform_driver_unregister(&sdum_driver);
> -};
> -
> -module_init(sdum_init);
> -module_exit(sdum_exit);
> +module_platform_driver(sdum_driver);
>  
>  MODULE_LICENSE("GPL");


WARNING: multiple messages have this Message-ID (diff)
From: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
To: Axel Lin <axel.lin@gmail.com>
Cc: linux-kernel@vger.kernel.org,
	Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com>,
	linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to use module_platform_driver()
Date: Mon, 19 Dec 2011 23:15:27 +0000	[thread overview]
Message-ID: <4EEFC58F.5020106@gmx.de> (raw)
In-Reply-To: <1323396075.3740.8.camel@phoenix>

On 12/09/2011 02:01 AM, Axel Lin wrote:
> This patch converts the drivers in drivers/video/pnx4008/* to use the
> module_platform_driver() macro which makes the code smaller and a bit
> simpler.
> 
> Cc: Grigory Tolstolytkin <gtolstolytkin@ru.mvista.com>
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Applied.


Thanks,

Florian Tobias Schandinat

> ---
>  drivers/video/pnx4008/pnxrgbfb.c |   13 +------------
>  drivers/video/pnx4008/sdum.c     |   13 +------------
>  2 files changed, 2 insertions(+), 24 deletions(-)
> 
> diff --git a/drivers/video/pnx4008/pnxrgbfb.c b/drivers/video/pnx4008/pnxrgbfb.c
> index b2252fe..6d30428 100644
> --- a/drivers/video/pnx4008/pnxrgbfb.c
> +++ b/drivers/video/pnx4008/pnxrgbfb.c
> @@ -193,17 +193,6 @@ static struct platform_driver rgbfb_driver = {
>  	.remove = rgbfb_remove,
>  };
>  
> -static int __init rgbfb_init(void)
> -{
> -	return platform_driver_register(&rgbfb_driver);
> -}
> -
> -static void __exit rgbfb_exit(void)
> -{
> -	platform_driver_unregister(&rgbfb_driver);
> -}
> -
> -module_init(rgbfb_init);
> -module_exit(rgbfb_exit);
> +module_platform_driver(rgbfb_driver);
>  
>  MODULE_LICENSE("GPL");
> diff --git a/drivers/video/pnx4008/sdum.c b/drivers/video/pnx4008/sdum.c
> index 50e0039..c5c7414 100644
> --- a/drivers/video/pnx4008/sdum.c
> +++ b/drivers/video/pnx4008/sdum.c
> @@ -856,17 +856,6 @@ static struct platform_driver sdum_driver = {
>  	.resume = sdum_resume,
>  };
>  
> -int __init sdum_init(void)
> -{
> -	return platform_driver_register(&sdum_driver);
> -}
> -
> -static void __exit sdum_exit(void)
> -{
> -	platform_driver_unregister(&sdum_driver);
> -};
> -
> -module_init(sdum_init);
> -module_exit(sdum_exit);
> +module_platform_driver(sdum_driver);
>  
>  MODULE_LICENSE("GPL");


  reply	other threads:[~2011-12-19 23:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09  1:57 [PATCH 1/3] video: convert mbxfb to use module_platform_driver() Axel Lin
2011-12-09  1:57 ` Axel Lin
2011-12-09  1:59 ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Axel Lin
2011-12-09  1:59   ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver() Axel Lin
2011-12-09  8:24   ` Marek Vasut
2011-12-09  8:24     ` Marek Vasut
2011-12-09 22:00     ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Jonathan McDowell
2011-12-09 22:00       ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver() Jonathan McDowell
2011-12-12 10:46   ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use Tomi Valkeinen
2011-12-12 10:46     ` [PATCH 2/3] video: omap: convert drivers/video/omap/* to use module_platform_driver() Tomi Valkeinen
2011-12-09  2:01 ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to use Axel Lin
2011-12-09  2:01   ` [PATCH 3/3] video: pnx4008: convert drivers/video/pnx4008/* to use module_platform_driver() Axel Lin
2011-12-19 23:15   ` Florian Tobias Schandinat [this message]
2011-12-19 23:15     ` Florian Tobias Schandinat
2011-12-19 23:14 ` [PATCH 1/3] video: convert mbxfb " Florian Tobias Schandinat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EEFC58F.5020106@gmx.de \
    --to=florianschandinat@gmx.de \
    --cc=axel.lin@gmail.com \
    --cc=gtolstolytkin@ru.mvista.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.