diff options
Diffstat (limited to 'drivers/hwmon/adcxx.c')
-rw-r--r-- | drivers/hwmon/adcxx.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/hwmon/adcxx.c b/drivers/hwmon/adcxx.c index ceb24a365176..a3d3183454ad 100644 --- a/drivers/hwmon/adcxx.c +++ b/drivers/hwmon/adcxx.c | |||
@@ -248,18 +248,7 @@ static struct spi_driver adcxx_driver = { | |||
248 | .remove = __devexit_p(adcxx_remove), | 248 | .remove = __devexit_p(adcxx_remove), |
249 | }; | 249 | }; |
250 | 250 | ||
251 | static int __init init_adcxx(void) | 251 | module_spi_driver(adcxx_driver); |
252 | { | ||
253 | return spi_register_driver(&adcxx_driver); | ||
254 | } | ||
255 | |||
256 | static void __exit exit_adcxx(void) | ||
257 | { | ||
258 | spi_unregister_driver(&adcxx_driver); | ||
259 | } | ||
260 | |||
261 | module_init(init_adcxx); | ||
262 | module_exit(exit_adcxx); | ||
263 | 252 | ||
264 | MODULE_AUTHOR("Marc Pignat"); | 253 | MODULE_AUTHOR("Marc Pignat"); |
265 | MODULE_DESCRIPTION("National Semiconductor adcxx8sxxx Linux driver"); | 254 | MODULE_DESCRIPTION("National Semiconductor adcxx8sxxx Linux driver"); |