diff options
author | Michael Hennerich <michael.hennerich@analog.com> | 2012-03-01 10:51:05 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-02 16:35:39 -0800 |
commit | 5f953732ac0ca0044114ad162306212a1b8dd5be (patch) | |
tree | 98b08c44cc8ee00355941f97155ab004f8fa6602 /drivers/staging/iio/trigger/iio-trig-gpio.c | |
parent | 0f1acee5f5e2ceaef3244dc4c1f3895b907669cd (diff) | |
download | op-kernel-dev-5f953732ac0ca0044114ad162306212a1b8dd5be.zip op-kernel-dev-5f953732ac0ca0044114ad162306212a1b8dd5be.tar.gz |
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/trigger/iio-trig-gpio.c')
-rw-r--r-- | drivers/staging/iio/trigger/iio-trig-gpio.c | 12 |
1 files changed, 1 insertions, 11 deletions
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"); |