hwmon: convert drivers/hwmon/* to use module_i2c_driver()
[deliverable/linux.git] / drivers / hwmon / pmbus / max8688.c
index e2b74bb399ba36ce02c65003c104ae12d1136af6..82c598d7cfa3efde37b101e9af155caefa8c3f3c 100644 (file)
@@ -203,18 +203,8 @@ static struct i2c_driver max8688_driver = {
        .id_table = max8688_id,
 };
 
-static int __init max8688_init(void)
-{
-       return i2c_add_driver(&max8688_driver);
-}
-
-static void __exit max8688_exit(void)
-{
-       i2c_del_driver(&max8688_driver);
-}
+module_i2c_driver(max8688_driver);
 
 MODULE_AUTHOR("Guenter Roeck");
 MODULE_DESCRIPTION("PMBus driver for Maxim MAX8688");
 MODULE_LICENSE("GPL");
-module_init(max8688_init);
-module_exit(max8688_exit);
This page took 0.033198 seconds and 5 git commands to generate.