diff options
Diffstat (limited to 'drivers/misc/eeprom')
-rw-r--r-- | drivers/misc/eeprom/eeprom.c | 14 | ||||
-rw-r--r-- | drivers/misc/eeprom/max6875.c | 14 |
2 files changed, 2 insertions, 26 deletions
diff --git a/drivers/misc/eeprom/eeprom.c b/drivers/misc/eeprom/eeprom.c index 45060ddc4e59..c169e07654cb 100644 --- a/drivers/misc/eeprom/eeprom.c +++ b/drivers/misc/eeprom/eeprom.c | |||
@@ -229,22 +229,10 @@ static struct i2c_driver eeprom_driver = { | |||
229 | .address_list = normal_i2c, | 229 | .address_list = normal_i2c, |
230 | }; | 230 | }; |
231 | 231 | ||
232 | static int __init eeprom_init(void) | 232 | module_i2c_driver(eeprom_driver); |
233 | { | ||
234 | return i2c_add_driver(&eeprom_driver); | ||
235 | } | ||
236 | |||
237 | static void __exit eeprom_exit(void) | ||
238 | { | ||
239 | i2c_del_driver(&eeprom_driver); | ||
240 | } | ||
241 | |||
242 | 233 | ||
243 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and " | 234 | MODULE_AUTHOR("Frodo Looijaard <frodol@dds.nl> and " |
244 | "Philip Edelbrock <phil@netroedge.com> and " | 235 | "Philip Edelbrock <phil@netroedge.com> and " |
245 | "Greg Kroah-Hartman <greg@kroah.com>"); | 236 | "Greg Kroah-Hartman <greg@kroah.com>"); |
246 | MODULE_DESCRIPTION("I2C EEPROM driver"); | 237 | MODULE_DESCRIPTION("I2C EEPROM driver"); |
247 | MODULE_LICENSE("GPL"); | 238 | MODULE_LICENSE("GPL"); |
248 | |||
249 | module_init(eeprom_init); | ||
250 | module_exit(eeprom_exit); | ||
diff --git a/drivers/misc/eeprom/max6875.c b/drivers/misc/eeprom/max6875.c index 5653a3ce0517..e36157d5d3ab 100644 --- a/drivers/misc/eeprom/max6875.c +++ b/drivers/misc/eeprom/max6875.c | |||
@@ -208,20 +208,8 @@ static struct i2c_driver max6875_driver = { | |||
208 | .id_table = max6875_id, | 208 | .id_table = max6875_id, |
209 | }; | 209 | }; |
210 | 210 | ||
211 | static int __init max6875_init(void) | 211 | module_i2c_driver(max6875_driver); |
212 | { | ||
213 | return i2c_add_driver(&max6875_driver); | ||
214 | } | ||
215 | |||
216 | static void __exit max6875_exit(void) | ||
217 | { | ||
218 | i2c_del_driver(&max6875_driver); | ||
219 | } | ||
220 | |||
221 | 212 | ||
222 | MODULE_AUTHOR("Ben Gardner <bgardner@wabtec.com>"); | 213 | MODULE_AUTHOR("Ben Gardner <bgardner@wabtec.com>"); |
223 | MODULE_DESCRIPTION("MAX6875 driver"); | 214 | MODULE_DESCRIPTION("MAX6875 driver"); |
224 | MODULE_LICENSE("GPL"); | 215 | MODULE_LICENSE("GPL"); |
225 | |||
226 | module_init(max6875_init); | ||
227 | module_exit(max6875_exit); | ||