]> Pileus Git - ~andy/linux/blobdiff - drivers/hwmon/ds620.c
Merge tag 'sound-3.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[~andy/linux] / drivers / hwmon / ds620.c
index 300c3d4d67df21331a6e9ac410755b692b553a43..50663efad4121a76535f4a9553f5a7873ea47513 100644 (file)
@@ -297,19 +297,8 @@ static struct i2c_driver ds620_driver = {
        .id_table = ds620_id,
 };
 
-static int __init ds620_init(void)
-{
-       return i2c_add_driver(&ds620_driver);
-}
-
-static void __exit ds620_exit(void)
-{
-       i2c_del_driver(&ds620_driver);
-}
+module_i2c_driver(ds620_driver);
 
 MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>");
 MODULE_DESCRIPTION("DS620 driver");
 MODULE_LICENSE("GPL");
-
-module_init(ds620_init);
-module_exit(ds620_exit);