Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186403
b: refs/heads/master
c: 6a8d7ac
h: refs/heads/master
i:
  186401: 18d0037
  186399: 991aa60
v: v3
  • Loading branch information
Jean Delvare committed Mar 5, 2010
1 parent bc91491 commit 47af911
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 723a0aa0a10f111d7e9e0977d51ac996bf8edbbf
refs/heads/master: 6a8d7acfbef8ac6bf34421eae980f903cbe36874
15 changes: 7 additions & 8 deletions trunk/drivers/hwmon/it87.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,14 +1107,14 @@ static const struct attribute_group it87_group_pwm[3] = {
{ .attrs = it87_attributes_pwm[2] },
};

static struct attribute *it87_attributes_opt[] = {
static struct attribute *it87_attributes_vid[] = {
&dev_attr_vrm.attr,
&dev_attr_cpu0_vid.attr,
NULL
};

static const struct attribute_group it87_group_opt = {
.attrs = it87_attributes_opt,
static const struct attribute_group it87_group_vid = {
.attrs = it87_attributes_vid,
};

/* SuperIO detection - will change isa_address if a chip is found */
Expand Down Expand Up @@ -1250,7 +1250,8 @@ static void it87_remove_files(struct device *dev)
continue;
sysfs_remove_group(&dev->kobj, &it87_group_pwm[i]);
}
sysfs_remove_group(&dev->kobj, &it87_group_opt);
if (!sio_data->skip_vid)
sysfs_remove_group(&dev->kobj, &it87_group_vid);
}

static int __devinit it87_probe(struct platform_device *pdev)
Expand Down Expand Up @@ -1335,10 +1336,8 @@ static int __devinit it87_probe(struct platform_device *pdev)
data->vrm = vid_which_vrm();
/* VID reading from Super-I/O config space if available */
data->vid = sio_data->vid_value;
if ((err = device_create_file(dev,
&dev_attr_vrm))
|| (err = device_create_file(dev,
&dev_attr_cpu0_vid)))
err = sysfs_create_group(&dev->kobj, &it87_group_vid);
if (err)
goto ERROR4;
}

Expand Down

0 comments on commit 47af911

Please sign in to comment.