Skip to content

Commit

Permalink
hwmon: (smsc47m1) restore missing name attribute
Browse files Browse the repository at this point in the history
The smsc47m1 driver no longer creates the name attribute used by
libsensors to identify chip types. It was lost during the conversion
to a platform driver. I was fooled by the fact that we do have a
group with all attributes, but only to delete them all at once. The
group is not used to create the attributes, so we have to explicitly
create the name attribute.

This fixes lm-sensors ticket #2236:
http://lm-sensors.org/ticket/2236

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
  • Loading branch information
Jean Delvare authored and Mark M. Hoffman committed Aug 12, 2007
1 parent 0956895 commit 68a50b5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/hwmon/smsc47m1.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,8 @@ static int __devinit smsc47m1_probe(struct platform_device *pdev)

if ((err = device_create_file(dev, &dev_attr_alarms)))
goto error_remove_files;
if ((err = device_create_file(dev, &dev_attr_name)))
goto error_remove_files;

data->class_dev = hwmon_device_register(dev);
if (IS_ERR(data->class_dev)) {
Expand Down

0 comments on commit 68a50b5

Please sign in to comment.