diff options
Diffstat (limited to 'drivers/hwmon/ad7414.c')
-rw-r--r-- | drivers/hwmon/ad7414.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/hwmon/ad7414.c b/drivers/hwmon/ad7414.c index edbdb6d9a837..36465006c4fb 100644 --- a/drivers/hwmon/ad7414.c +++ b/drivers/hwmon/ad7414.c | |||
@@ -256,17 +256,7 @@ static struct i2c_driver ad7414_driver = { | |||
256 | .id_table = ad7414_id, | 256 | .id_table = ad7414_id, |
257 | }; | 257 | }; |
258 | 258 | ||
259 | static int __init ad7414_init(void) | 259 | module_i2c_driver(ad7414_driver); |
260 | { | ||
261 | return i2c_add_driver(&ad7414_driver); | ||
262 | } | ||
263 | module_init(ad7414_init); | ||
264 | |||
265 | static void __exit ad7414_exit(void) | ||
266 | { | ||
267 | i2c_del_driver(&ad7414_driver); | ||
268 | } | ||
269 | module_exit(ad7414_exit); | ||
270 | 260 | ||
271 | MODULE_AUTHOR("Stefan Roese <sr at denx.de>, " | 261 | MODULE_AUTHOR("Stefan Roese <sr at denx.de>, " |
272 | "Frank Edelhaeuser <frank.edelhaeuser at spansion.com>"); | 262 | "Frank Edelhaeuser <frank.edelhaeuser at spansion.com>"); |