diff options
author | Jan Luebbe <jlu@pengutronix.de> | 2013-07-03 18:09:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:08:06 -0400 |
commit | 05212be363363efbc003d4fa1eaf8e48dfbe425a (patch) | |
tree | ef0dbffbc8ae5b31f80b602a7b6f3e0432176399 /drivers/pps | |
parent | 2a65182235790fc9a6abb9f41c1006c95f506545 (diff) |
drivers/pps/clients/pps-gpio.c: convert to module_platform_driver
This removes some boilerplate code (no functional changes).
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Acked-by: Rodolfo Giometti <giometti@enneenne.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/pps')
-rw-r--r-- | drivers/pps/clients/pps-gpio.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/drivers/pps/clients/pps-gpio.c b/drivers/pps/clients/pps-gpio.c index 54c2809021a3..5bd3bf093b54 100644 --- a/drivers/pps/clients/pps-gpio.c +++ b/drivers/pps/clients/pps-gpio.c | |||
@@ -187,23 +187,7 @@ static struct platform_driver pps_gpio_driver = { | |||
187 | }, | 187 | }, |
188 | }; | 188 | }; |
189 | 189 | ||
190 | static int __init pps_gpio_init(void) | 190 | module_platform_driver(pps_gpio_driver); |
191 | { | ||
192 | int ret = platform_driver_register(&pps_gpio_driver); | ||
193 | if (ret < 0) | ||
194 | pr_err("failed to register platform driver\n"); | ||
195 | return ret; | ||
196 | } | ||
197 | |||
198 | static void __exit pps_gpio_exit(void) | ||
199 | { | ||
200 | platform_driver_unregister(&pps_gpio_driver); | ||
201 | pr_debug("unregistered platform driver\n"); | ||
202 | } | ||
203 | |||
204 | module_init(pps_gpio_init); | ||
205 | module_exit(pps_gpio_exit); | ||
206 | |||
207 | MODULE_AUTHOR("Ricardo Martins <rasm@fe.up.pt>"); | 191 | MODULE_AUTHOR("Ricardo Martins <rasm@fe.up.pt>"); |
208 | MODULE_AUTHOR("James Nuss <jamesnuss@nanometrics.ca>"); | 192 | MODULE_AUTHOR("James Nuss <jamesnuss@nanometrics.ca>"); |
209 | MODULE_DESCRIPTION("Use GPIO pin as PPS source"); | 193 | MODULE_DESCRIPTION("Use GPIO pin as PPS source"); |