diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2012-03-01 13:51:05 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-03 04:35:39 +0400 |
commit | 5f953732ac0ca0044114ad162306212a1b8dd5be (patch) | |
tree | 98b08c44cc8ee00355941f97155ab004f8fa6602 /drivers/staging/iio/adc | |
parent | 0f1acee5f5e2ceaef3244dc4c1f3895b907669cd (diff) | |
download | linux-5f953732ac0ca0044114ad162306212a1b8dd5be.tar.xz |
staging: iio: Convert platform_drivers to use module_platform_driver
No functional changes.
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/iio/adc')
-rw-r--r-- | drivers/staging/iio/adc/ad7606_par.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/iio/adc/ad7606_par.c b/drivers/staging/iio/adc/ad7606_par.c index cff97568189e..bb152a8e8c92 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"); |