diff options
Diffstat (limited to 'drivers/hwmon/ad7314.c')
-rw-r--r-- | drivers/hwmon/ad7314.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/hwmon/ad7314.c b/drivers/hwmon/ad7314.c index 5d760f3d21c2..0e0cfcc36f8d 100644 --- a/drivers/hwmon/ad7314.c +++ b/drivers/hwmon/ad7314.c | |||
@@ -167,17 +167,7 @@ static struct spi_driver ad7314_driver = { | |||
167 | .id_table = ad7314_id, | 167 | .id_table = ad7314_id, |
168 | }; | 168 | }; |
169 | 169 | ||
170 | static __init int ad7314_init(void) | 170 | module_spi_driver(ad7314_driver); |
171 | { | ||
172 | return spi_register_driver(&ad7314_driver); | ||
173 | } | ||
174 | module_init(ad7314_init); | ||
175 | |||
176 | static __exit void ad7314_exit(void) | ||
177 | { | ||
178 | spi_unregister_driver(&ad7314_driver); | ||
179 | } | ||
180 | module_exit(ad7314_exit); | ||
181 | 171 | ||
182 | MODULE_AUTHOR("Sonic Zhang <sonic.zhang@analog.com>"); | 172 | MODULE_AUTHOR("Sonic Zhang <sonic.zhang@analog.com>"); |
183 | MODULE_DESCRIPTION("Analog Devices AD7314, ADT7301 and ADT7302 digital" | 173 | MODULE_DESCRIPTION("Analog Devices AD7314, ADT7301 and ADT7302 digital" |