diff options
Diffstat (limited to 'drivers/hwmon/ultra45_env.c')
-rw-r--r-- | drivers/hwmon/ultra45_env.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/hwmon/ultra45_env.c b/drivers/hwmon/ultra45_env.c index 1f36c635d933..27a62711e0a6 100644 --- a/drivers/hwmon/ultra45_env.c +++ b/drivers/hwmon/ultra45_env.c | |||
@@ -258,7 +258,7 @@ static int __devinit env_probe(struct platform_device *op) | |||
258 | goto out_sysfs_remove_group; | 258 | goto out_sysfs_remove_group; |
259 | } | 259 | } |
260 | 260 | ||
261 | dev_set_drvdata(&op->dev, p); | 261 | platform_set_drvdata(op, p); |
262 | err = 0; | 262 | err = 0; |
263 | 263 | ||
264 | out: | 264 | out: |
@@ -277,7 +277,7 @@ out_free: | |||
277 | 277 | ||
278 | static int __devexit env_remove(struct platform_device *op) | 278 | static int __devexit env_remove(struct platform_device *op) |
279 | { | 279 | { |
280 | struct env *p = dev_get_drvdata(&op->dev); | 280 | struct env *p = platform_get_drvdata(op); |
281 | 281 | ||
282 | if (p) { | 282 | if (p) { |
283 | sysfs_remove_group(&op->dev.kobj, &env_group); | 283 | sysfs_remove_group(&op->dev.kobj, &env_group); |