drm/nouveau: correctly pair hwmon_init and hwmon_fini
I broke this with my commit
07cfe0e7a8
This fixes fdo #33434
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Родитель
153e019ff3
Коммит
8c06a3e020
|
@ -443,7 +443,7 @@ nouveau_hwmon_fini(struct drm_device *dev)
|
||||||
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
|
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
|
||||||
|
|
||||||
if (pm->hwmon) {
|
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);
|
hwmon_device_unregister(pm->hwmon);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Загрузка…
Ссылка в новой задаче