diff options
Diffstat (limited to 'drivers/char/hw_random/atmel-rng.c')
-rw-r--r-- | drivers/char/hw_random/atmel-rng.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/atmel-rng.c index 241df2e76aba..f518b99f53f5 100644 --- a/drivers/char/hw_random/atmel-rng.c +++ b/drivers/char/hw_random/atmel-rng.c | |||
@@ -141,17 +141,7 @@ static struct platform_driver atmel_trng_driver = { | |||
141 | }, | 141 | }, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static int __init atmel_trng_init(void) | 144 | module_platform_driver(atmel_trng_driver); |
145 | { | ||
146 | return platform_driver_register(&atmel_trng_driver); | ||
147 | } | ||
148 | module_init(atmel_trng_init); | ||
149 | |||
150 | static void __exit atmel_trng_exit(void) | ||
151 | { | ||
152 | platform_driver_unregister(&atmel_trng_driver); | ||
153 | } | ||
154 | module_exit(atmel_trng_exit); | ||
155 | 145 | ||
156 | MODULE_LICENSE("GPL"); | 146 | MODULE_LICENSE("GPL"); |
157 | MODULE_AUTHOR("Peter Korsgaard <jacmet@sunsite.dk>"); | 147 | MODULE_AUTHOR("Peter Korsgaard <jacmet@sunsite.dk>"); |