Commit ead050dec6b0765357e45287f02ef8e51f69c3ed

Authored by Jingoo Han
Committed by Greg Kroah-Hartman
1 parent 4022ed5a72

misc: ep93xx_pwm: use module_platform_driver_probe()

This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 12 deletions Side-by-side Diff

drivers/misc/ep93xx_pwm.c
... ... @@ -365,18 +365,7 @@
365 365 .remove = __exit_p(ep93xx_pwm_remove),
366 366 };
367 367  
368   -static int __init ep93xx_pwm_init(void)
369   -{
370   - return platform_driver_probe(&ep93xx_pwm_driver, ep93xx_pwm_probe);
371   -}
372   -
373   -static void __exit ep93xx_pwm_exit(void)
374   -{
375   - platform_driver_unregister(&ep93xx_pwm_driver);
376   -}
377   -
378   -module_init(ep93xx_pwm_init);
379   -module_exit(ep93xx_pwm_exit);
  368 +module_platform_driver_probe(ep93xx_pwm_driver, ep93xx_pwm_probe);
380 369  
381 370 MODULE_AUTHOR("Matthieu Crapet <mcrapet@gmail.com>, "
382 371 "H Hartley Sweeten <hsweeten@visionengravers.com>");