aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ltc4151.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/ltc4151.c')
-rw-r--r--drivers/hwmon/ltc4151.c16
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, \
154static SENSOR_DEVICE_ATTR(curr1_input, S_IRUGO, \ 154static 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 */
160static struct attribute *ltc4151_attributes[] = { 161static 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
241static int __init ltc4151_init(void) 242module_i2c_driver(ltc4151_driver);
242{
243 return i2c_add_driver(&ltc4151_driver);
244}
245
246static void __exit ltc4151_exit(void)
247{
248 i2c_del_driver(&ltc4151_driver);
249}
250 243
251MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>"); 244MODULE_AUTHOR("Per Dalen <per.dalen@appeartv.com>");
252MODULE_DESCRIPTION("LTC4151 driver"); 245MODULE_DESCRIPTION("LTC4151 driver");
253MODULE_LICENSE("GPL"); 246MODULE_LICENSE("GPL");
254
255module_init(ltc4151_init);
256module_exit(ltc4151_exit);