diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 15:50:19 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 15:50:19 -0400 |
commit | 4fa435018d740cb83d74c92306aa1f796da91ddd (patch) | |
tree | b2b5783837be3d17b65b924b051aeb01e6b1fce9 /drivers/hwmon/vt1211.c | |
parent | 7441dd12e607651128e676866630a848b664d6e7 (diff) | |
parent | a022fef5a2b19086b329d1cc64a5d78aa83e2908 (diff) |
Merge branch 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6
* 'release' of git://lm-sensors.org/kernel/mhoffman/hwmon-2.6: (53 commits)
hwmon: (vt8231) fix sparse warning
hwmon: (sis5595) fix sparse warning
hwmon: (w83627hf) don't assume bank 0
hwmon: (w83627hf) Fix setting fan min right after driver load
hwmon: (w83627hf) De-macro sysfs callback functions
hwmon: Add new combined driver for FSC chips
hwmon: (ibmpex) Release IPMI user if hwmon registration fails
hwmon: (dme1737) Add sch311x support
hwmon: (dme1737) group functions logically
hwmon: (dme1737) cleanups
hwmon: IBM power meter driver
hwmon: (coretemp) Add support for Celeron 4xx
hwmon: (lm87) Disable VID when it should be
hwmon: (w83781d) Add individual alarm and beep files
hwmon: VRM is not read from registers
MAINTAINERS: update hwmon subsystem git trees
hwmon: Fix the code examples in documentation
hwmon: update sysfs interface document - error handling
hwmon: (thmc50) Fix a debug message
hwmon: (thmc50) Don't create temp3 if not enabled
...
Diffstat (limited to 'drivers/hwmon/vt1211.c')
-rw-r--r-- | drivers/hwmon/vt1211.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/hwmon/vt1211.c b/drivers/hwmon/vt1211.c index 9f3e332c5b7f..e69416465e6d 100644 --- a/drivers/hwmon/vt1211.c +++ b/drivers/hwmon/vt1211.c | |||
@@ -108,7 +108,7 @@ static const u8 bitalarmfan[] = {6, 7}; | |||
108 | struct vt1211_data { | 108 | struct vt1211_data { |
109 | unsigned short addr; | 109 | unsigned short addr; |
110 | const char *name; | 110 | const char *name; |
111 | struct class_device *class_dev; | 111 | struct device *hwmon_dev; |
112 | 112 | ||
113 | struct mutex update_lock; | 113 | struct mutex update_lock; |
114 | char valid; /* !=0 if following fields are valid */ | 114 | char valid; /* !=0 if following fields are valid */ |
@@ -1191,9 +1191,9 @@ static int __devinit vt1211_probe(struct platform_device *pdev) | |||
1191 | } | 1191 | } |
1192 | 1192 | ||
1193 | /* Register device */ | 1193 | /* Register device */ |
1194 | data->class_dev = hwmon_device_register(dev); | 1194 | data->hwmon_dev = hwmon_device_register(dev); |
1195 | if (IS_ERR(data->class_dev)) { | 1195 | if (IS_ERR(data->hwmon_dev)) { |
1196 | err = PTR_ERR(data->class_dev); | 1196 | err = PTR_ERR(data->hwmon_dev); |
1197 | dev_err(dev, "Class registration failed (%d)\n", err); | 1197 | dev_err(dev, "Class registration failed (%d)\n", err); |
1198 | goto EXIT_DEV_REMOVE_SILENT; | 1198 | goto EXIT_DEV_REMOVE_SILENT; |
1199 | } | 1199 | } |
@@ -1217,7 +1217,7 @@ static int __devexit vt1211_remove(struct platform_device *pdev) | |||
1217 | struct vt1211_data *data = platform_get_drvdata(pdev); | 1217 | struct vt1211_data *data = platform_get_drvdata(pdev); |
1218 | struct resource *res; | 1218 | struct resource *res; |
1219 | 1219 | ||
1220 | hwmon_device_unregister(data->class_dev); | 1220 | hwmon_device_unregister(data->hwmon_dev); |
1221 | vt1211_remove_sysfs(pdev); | 1221 | vt1211_remove_sysfs(pdev); |
1222 | platform_set_drvdata(pdev, NULL); | 1222 | platform_set_drvdata(pdev, NULL); |
1223 | kfree(data); | 1223 | kfree(data); |