Skip to content

Commit

Permalink
drm/nouveau: correctly pair hwmon_init and hwmon_fini
Browse files Browse the repository at this point in the history
I broke this with my commit
07cfe0e

This fixes fdo #33434

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Lucas Stach authored and Ben Skeggs committed Feb 2, 2011
1 parent 153e019 commit 8c06a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nouveau_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ nouveau_hwmon_fini(struct drm_device *dev)
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;

if (pm->hwmon) {
sysfs_remove_group(&pm->hwmon->kobj, &hwmon_attrgroup);
sysfs_remove_group(&dev->pdev->dev.kobj, &hwmon_attrgroup);
hwmon_device_unregister(pm->hwmon);
}
#endif
Expand Down

0 comments on commit 8c06a3e

Please sign in to comment.