diff options
Diffstat (limited to 'drivers/hwmon/ltc4151.c')
-rw-r--r-- | drivers/hwmon/ltc4151.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/drivers/hwmon/ltc4151.c b/drivers/hwmon/ltc4151.c index 4ac06b75aa60..4d005b219de2 100644 --- a/drivers/hwmon/ltc4151.c +++ b/drivers/hwmon/ltc4151.c | |||
@@ -154,7 +154,8 @@ static SENSOR_DEVICE_ATTR(in2_input, S_IRUGO, \ | |||
154 | static SENSOR_DEVICE_ATTR(curr1_input, S_IRUGO, \ | 154 | static SENSOR_DEVICE_ATTR(curr1_input, S_IRUGO, \ |
155 | ltc4151_show_value, NULL, LTC4151_SENSE_H); | 155 | ltc4151_show_value, NULL, LTC4151_SENSE_H); |
156 | 156 | ||
157 | /* Finally, construct an array of pointers to members of the above objects, | 157 | /* |
158 | * Finally, construct an array of pointers to members of the above objects, | ||
158 | * as required for sysfs_create_group() | 159 | * as required for sysfs_create_group() |
159 | */ | 160 | */ |
160 | static struct attribute *ltc4151_attributes[] = { | 161 | static struct attribute *ltc4151_attributes[] = { |
@@ -238,19 +239,8 @@ static struct i2c_driver ltc4151_driver = { | |||
238 | .id_table = ltc4151_id, | 239 | .id_table = ltc4151_id, |
239 | }; | 240 | }; |
240 | 241 | ||
241 | static int __init ltc4151_init(void) | 242 | module_i2c_driver(ltc4151_driver); |
242 | { | ||
243 | return i2c_add_driver(<c4151_driver); | ||
244 | } | ||
245 | |||
246 | static void __exit ltc4151_exit(void) | ||
247 | { | ||
248 | i2c_del_driver(<c4151_driver); | ||
249 | } | ||
250 | 243 | ||
251 | MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); | 244 | MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); |
252 | MODULE_DESCRIPTION("LTC4151 driver"); | 245 | MODULE_DESCRIPTION("LTC4151 driver"); |
253 | MODULE_LICENSE("GPL"); | 246 | MODULE_LICENSE("GPL"); |
254 | |||
255 | module_init(ltc4151_init); | ||
256 | module_exit(ltc4151_exit); | ||