X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=drivers%2Fmisc%2Fatmel_pwm.c;h=494d0500bda6483a9f3d93f6287075d5f0825448;hb=eb3d33900aa953bcdfe132a71bb03ee592ebbb47;hp=28f5aaa19d4a289b8b0cf9241f42ab641e4051ca;hpb=d4bbf7e7759afc172e2bfbc5c416324590049cdd;p=linux-2.6-block.git diff --git a/drivers/misc/atmel_pwm.c b/drivers/misc/atmel_pwm.c index 28f5aaa19d4a..494d0500bda6 100644 --- a/drivers/misc/atmel_pwm.c +++ b/drivers/misc/atmel_pwm.c @@ -393,17 +393,7 @@ static struct platform_driver atmel_pwm_driver = { */ }; -static int __init pwm_init(void) -{ - return platform_driver_probe(&atmel_pwm_driver, pwm_probe); -} -module_init(pwm_init); - -static void __exit pwm_exit(void) -{ - platform_driver_unregister(&atmel_pwm_driver); -} -module_exit(pwm_exit); +module_platform_driver_probe(atmel_pwm_driver, pwm_probe); MODULE_DESCRIPTION("Driver for AT32/AT91 PWM module"); MODULE_LICENSE("GPL");