diff options
Diffstat (limited to 'drivers/hwmon/sis5595.c')
-rw-r--r-- | drivers/hwmon/sis5595.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/sis5595.c b/drivers/hwmon/sis5595.c index 92956eb3f3c1..3de9721aa67f 100644 --- a/drivers/hwmon/sis5595.c +++ b/drivers/hwmon/sis5595.c | |||
@@ -163,7 +163,7 @@ static inline u8 DIV_TO_REG(int val) | |||
163 | struct sis5595_data { | 163 | struct sis5595_data { |
164 | unsigned short addr; | 164 | unsigned short addr; |
165 | const char *name; | 165 | const char *name; |
166 | struct class_device *class_dev; | 166 | struct device *hwmon_dev; |
167 | struct mutex lock; | 167 | struct mutex lock; |
168 | 168 | ||
169 | struct mutex update_lock; | 169 | struct mutex update_lock; |
@@ -557,9 +557,9 @@ static int __devinit sis5595_probe(struct platform_device *pdev) | |||
557 | goto exit_remove_files; | 557 | goto exit_remove_files; |
558 | } | 558 | } |
559 | 559 | ||
560 | data->class_dev = hwmon_device_register(&pdev->dev); | 560 | data->hwmon_dev = hwmon_device_register(&pdev->dev); |
561 | if (IS_ERR(data->class_dev)) { | 561 | if (IS_ERR(data->hwmon_dev)) { |
562 | err = PTR_ERR(data->class_dev); | 562 | err = PTR_ERR(data->hwmon_dev); |
563 | goto exit_remove_files; | 563 | goto exit_remove_files; |
564 | } | 564 | } |
565 | 565 | ||
@@ -580,7 +580,7 @@ static int __devexit sis5595_remove(struct platform_device *pdev) | |||
580 | { | 580 | { |
581 | struct sis5595_data *data = platform_get_drvdata(pdev); | 581 | struct sis5595_data *data = platform_get_drvdata(pdev); |
582 | 582 | ||
583 | hwmon_device_unregister(data->class_dev); | 583 | hwmon_device_unregister(data->hwmon_dev); |
584 | sysfs_remove_group(&pdev->dev.kobj, &sis5595_group); | 584 | sysfs_remove_group(&pdev->dev.kobj, &sis5595_group); |
585 | sysfs_remove_group(&pdev->dev.kobj, &sis5595_group_opt); | 585 | sysfs_remove_group(&pdev->dev.kobj, &sis5595_group_opt); |
586 | 586 | ||