diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_pm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c index d93814160bcf..fb846a3fef15 100644 --- a/drivers/gpu/drm/nouveau/nouveau_pm.c +++ b/drivers/gpu/drm/nouveau/nouveau_pm.c | |||
@@ -422,8 +422,7 @@ nouveau_hwmon_init(struct drm_device *dev) | |||
422 | return ret; | 422 | return ret; |
423 | } | 423 | } |
424 | dev_set_drvdata(hwmon_dev, dev); | 424 | dev_set_drvdata(hwmon_dev, dev); |
425 | ret = sysfs_create_group(&hwmon_dev->kobj, | 425 | ret = sysfs_create_group(&dev->pdev->dev.kobj, &hwmon_attrgroup); |
426 | &hwmon_attrgroup); | ||
427 | if (ret) { | 426 | if (ret) { |
428 | NV_ERROR(dev, | 427 | NV_ERROR(dev, |
429 | "Unable to create hwmon sysfs file: %d\n", ret); | 428 | "Unable to create hwmon sysfs file: %d\n", ret); |