diff options
Diffstat (limited to 'drivers/char/hw_random/pasemi-rng.c')
-rw-r--r-- | drivers/char/hw_random/pasemi-rng.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/char/hw_random/pasemi-rng.c b/drivers/char/hw_random/pasemi-rng.c index 1d504815e6db..3a632673aed5 100644 --- a/drivers/char/hw_random/pasemi-rng.c +++ b/drivers/char/hw_random/pasemi-rng.c | |||
@@ -148,17 +148,7 @@ static struct platform_driver rng_driver = { | |||
148 | .remove = rng_remove, | 148 | .remove = rng_remove, |
149 | }; | 149 | }; |
150 | 150 | ||
151 | static int __init rng_init(void) | 151 | module_platform_driver(rng_driver); |
152 | { | ||
153 | return platform_driver_register(&rng_driver); | ||
154 | } | ||
155 | module_init(rng_init); | ||
156 | |||
157 | static void __exit rng_exit(void) | ||
158 | { | ||
159 | platform_driver_unregister(&rng_driver); | ||
160 | } | ||
161 | module_exit(rng_exit); | ||
162 | 152 | ||
163 | MODULE_LICENSE("GPL"); | 153 | MODULE_LICENSE("GPL"); |
164 | MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>"); | 154 | MODULE_AUTHOR("Egor Martovetsky <egor@pasemi.com>"); |