diff options
Diffstat (limited to 'drivers/hwmon/smsc47m1.c')
-rw-r--r-- | drivers/hwmon/smsc47m1.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/smsc47m1.c b/drivers/hwmon/smsc47m1.c index 71792778d6f2..a10a380868e2 100644 --- a/drivers/hwmon/smsc47m1.c +++ b/drivers/hwmon/smsc47m1.c | |||
@@ -116,7 +116,7 @@ struct smsc47m1_data { | |||
116 | unsigned short addr; | 116 | unsigned short addr; |
117 | const char *name; | 117 | const char *name; |
118 | enum chips type; | 118 | enum chips type; |
119 | struct class_device *class_dev; | 119 | struct device *hwmon_dev; |
120 | 120 | ||
121 | struct mutex update_lock; | 121 | struct mutex update_lock; |
122 | unsigned long last_updated; /* In jiffies */ | 122 | unsigned long last_updated; /* In jiffies */ |
@@ -588,9 +588,9 @@ static int __devinit smsc47m1_probe(struct platform_device *pdev) | |||
588 | if ((err = device_create_file(dev, &dev_attr_name))) | 588 | if ((err = device_create_file(dev, &dev_attr_name))) |
589 | goto error_remove_files; | 589 | goto error_remove_files; |
590 | 590 | ||
591 | data->class_dev = hwmon_device_register(dev); | 591 | data->hwmon_dev = hwmon_device_register(dev); |
592 | if (IS_ERR(data->class_dev)) { | 592 | if (IS_ERR(data->hwmon_dev)) { |
593 | err = PTR_ERR(data->class_dev); | 593 | err = PTR_ERR(data->hwmon_dev); |
594 | goto error_remove_files; | 594 | goto error_remove_files; |
595 | } | 595 | } |
596 | 596 | ||
@@ -611,7 +611,7 @@ static int __devexit smsc47m1_remove(struct platform_device *pdev) | |||
611 | struct smsc47m1_data *data = platform_get_drvdata(pdev); | 611 | struct smsc47m1_data *data = platform_get_drvdata(pdev); |
612 | struct resource *res; | 612 | struct resource *res; |
613 | 613 | ||
614 | hwmon_device_unregister(data->class_dev); | 614 | hwmon_device_unregister(data->hwmon_dev); |
615 | sysfs_remove_group(&pdev->dev.kobj, &smsc47m1_group); | 615 | sysfs_remove_group(&pdev->dev.kobj, &smsc47m1_group); |
616 | 616 | ||
617 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); | 617 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); |