Merge branch 'perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/acme...
[cascardo/linux.git] / drivers / hwmon / ds620.c
index 300c3d4..50663ef 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);