Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c06a3e0 authored by Lucas Stach's avatar Lucas Stach Committed by Ben Skeggs
Browse files

drm/nouveau: correctly pair hwmon_init and hwmon_fini



I broke this with my commit
07cfe0e7

This fixes fdo #33434

Signed-off-by: default avatarLucas Stach <dev@lynxeye.de>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 153e019f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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