hwmon: convert drivers/hwmon/* to use module_i2c_driver()
[pandora-kernel.git] / drivers / hwmon / smm665.c
index 4116381..24382c7 100644 (file)
@@ -376,7 +376,7 @@ static ssize_t smm665_show_input(struct device *dev,
 }
 
 #define SMM665_SHOW(what) \
-  static ssize_t smm665_show_##what(struct device *dev, \
+static ssize_t smm665_show_##what(struct device *dev, \
                                    struct device_attribute *da, char *buf) \
 { \
        struct sensor_device_attribute *attr = to_sensor_dev_attr(da); \
@@ -718,19 +718,8 @@ static struct i2c_driver smm665_driver = {
        .id_table = smm665_id,
 };
 
-static int __init smm665_init(void)
-{
-       return i2c_add_driver(&smm665_driver);
-}
-
-static void __exit smm665_exit(void)
-{
-       i2c_del_driver(&smm665_driver);
-}
+module_i2c_driver(smm665_driver);
 
 MODULE_AUTHOR("Guenter Roeck");
 MODULE_DESCRIPTION("SMM665 driver");
 MODULE_LICENSE("GPL");
-
-module_init(smm665_init);
-module_exit(smm665_exit);