From: Jonathan Cameron <jic23@kernel.org>
To: michael.hennerich@analog.com
Cc: linux-iio@vger.kernel.org,
device-drivers-devel@blackfin.uclinux.org, drivers@analog.com
Subject: Re: [PATCH 3/3] iio: Convert platform_drivers to use module_platform_driver
Date: Wed, 29 Feb 2012 20:16:41 +0000 [thread overview]
Message-ID: <4F4E87A9.2030202@kernel.org> (raw)
In-Reply-To: <1329913815-5382-3-git-send-email-michael.hennerich@analog.com>
On 02/22/2012 12:30 PM, michael.hennerich@analog.com wrote:
> From: Michael Hennerich <michael.hennerich@analog.com>
>
> No functional changes.
>
> Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
> ---
> drivers/staging/iio/adc/ad7606_par.c | 13 +------------
> drivers/staging/iio/trigger/iio-trig-bfin-timer.c | 12 +-----------
> drivers/staging/iio/trigger/iio-trig-gpio.c | 12 +-----------
> .../staging/iio/trigger/iio-trig-periodic-rtc.c | 12 +-----------
> 4 files changed, 4 insertions(+), 45 deletions(-)
>
> diff --git a/drivers/staging/iio/adc/ad7606_par.c b/drivers/staging/iio/adc/ad7606_par.c
> index cff9756..bb152a8 100644
> --- a/drivers/staging/iio/adc/ad7606_par.c
> +++ b/drivers/staging/iio/adc/ad7606_par.c
> @@ -173,18 +173,7 @@ static struct platform_driver ad7606_driver = {
> },
> };
>
> -static int __init ad7606_init(void)
> -{
> - return platform_driver_register(&ad7606_driver);
> -}
> -
> -static void __exit ad7606_cleanup(void)
> -{
> - platform_driver_unregister(&ad7606_driver);
> -}
> -
> -module_init(ad7606_init);
> -module_exit(ad7606_cleanup);
> +module_platform_driver(ad7606_driver);
>
> MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
> MODULE_DESCRIPTION("Analog Devices AD7606 ADC");
> diff --git a/drivers/staging/iio/trigger/iio-trig-bfin-timer.c b/drivers/staging/iio/trigger/iio-trig-bfin-timer.c
> index 1cbb25d..665653d 100644
> --- a/drivers/staging/iio/trigger/iio-trig-bfin-timer.c
> +++ b/drivers/staging/iio/trigger/iio-trig-bfin-timer.c
> @@ -232,17 +232,7 @@ static struct platform_driver iio_bfin_tmr_trigger_driver = {
> .remove = __devexit_p(iio_bfin_tmr_trigger_remove),
> };
>
> -static int __init iio_bfin_tmr_trig_init(void)
> -{
> - return platform_driver_register(&iio_bfin_tmr_trigger_driver);
> -}
> -module_init(iio_bfin_tmr_trig_init);
> -
> -static void __exit iio_bfin_tmr_trig_exit(void)
> -{
> - platform_driver_unregister(&iio_bfin_tmr_trigger_driver);
> -}
> -module_exit(iio_bfin_tmr_trig_exit);
> +module_platform_driver(iio_bfin_tmr_trigger_driver);
>
> MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
> MODULE_DESCRIPTION("Blackfin system timer based trigger for the iio subsystem");
> diff --git a/drivers/staging/iio/trigger/iio-trig-gpio.c b/drivers/staging/iio/trigger/iio-trig-gpio.c
> index f2a6559..a346594 100644
> --- a/drivers/staging/iio/trigger/iio-trig-gpio.c
> +++ b/drivers/staging/iio/trigger/iio-trig-gpio.c
> @@ -160,17 +160,7 @@ static struct platform_driver iio_gpio_trigger_driver = {
> },
> };
>
> -static int __init iio_gpio_trig_init(void)
> -{
> - return platform_driver_register(&iio_gpio_trigger_driver);
> -}
> -module_init(iio_gpio_trig_init);
> -
> -static void __exit iio_gpio_trig_exit(void)
> -{
> - platform_driver_unregister(&iio_gpio_trigger_driver);
> -}
> -module_exit(iio_gpio_trig_exit);
> +module_platform_driver(iio_gpio_trigger_driver);
>
> MODULE_AUTHOR("Jonathan Cameron <jic23@cam.ac.uk>");
> MODULE_DESCRIPTION("Example gpio trigger for the iio subsystem");
> diff --git a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c
> index bd7416b..a80cf67 100644
> --- a/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c
> +++ b/drivers/staging/iio/trigger/iio-trig-periodic-rtc.c
> @@ -195,18 +195,8 @@ static struct platform_driver iio_trig_periodic_rtc_driver = {
> },
> };
>
> -static int __init iio_trig_periodic_rtc_init(void)
> -{
> - return platform_driver_register(&iio_trig_periodic_rtc_driver);
> -}
> -
> -static void __exit iio_trig_periodic_rtc_exit(void)
> -{
> - return platform_driver_unregister(&iio_trig_periodic_rtc_driver);
> -}
> +module_platform_driver(iio_trig_periodic_rtc_driver);
>
> -module_init(iio_trig_periodic_rtc_init);
> -module_exit(iio_trig_periodic_rtc_exit);
> MODULE_AUTHOR("Jonathan Cameron <jic23@cam.ac.uk>");
> MODULE_DESCRIPTION("Periodic realtime clock trigger for the iio subsystem");
> MODULE_LICENSE("GPL v2");
next prev parent reply other threads:[~2012-02-29 20:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-22 12:30 [PATCH 1/3] iio: core: Introduce debugfs support, add support for direct register access michael.hennerich
2012-02-22 12:30 ` [PATCH 2/3] iio: core: Avoid NULL pointer de-ref in case indio_dev->setup_ops are not in use michael.hennerich
2012-02-29 20:15 ` Jonathan Cameron
2012-02-22 12:30 ` [PATCH 3/3] iio: Convert platform_drivers to use module_platform_driver michael.hennerich
2012-02-29 20:16 ` Jonathan Cameron [this message]
2012-02-29 20:14 ` [PATCH 1/3] iio: core: Introduce debugfs support, add support for direct register access Jonathan Cameron
2012-03-01 9:44 ` Michael Hennerich
-- strict thread matches above, loose matches on Subject: below --
2012-03-01 9:51 michael.hennerich
2012-03-01 9:51 ` [PATCH 3/3] iio: Convert platform_drivers to use module_platform_driver michael.hennerich
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=4F4E87A9.2030202@kernel.org \
--to=jic23@kernel.org \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=drivers@analog.com \
--cc=linux-iio@vger.kernel.org \
--cc=michael.hennerich@analog.com \
/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.