summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2011-01-06 20:29:53 +0100
committerBen Skeggs <bskeggs@redhat.com>2011-01-07 23:22:17 +1000
commit07cfe0e7a820ecad078c04e9c2a102521709145d (patch)
treeff627005113544e261aa4f979d7e3001ae656abe /drivers/gpu/drm/nouveau
parente457acaed4c56a6831b82365e17e8f42f1ee129c (diff)
downloadblackbird-op-linux-07cfe0e7a820ecad078c04e9c2a102521709145d.tar.gz
blackbird-op-linux-07cfe0e7a820ecad078c04e9c2a102521709145d.zip
drm/nouveau: fix hwmon device binding
Bind the hwmon structs to nouveau device kobj. This makes sure the hwmon files are created in the device subdir in line with all other hwmon drivers. Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_pm.c3
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)
return ret;
}
dev_set_drvdata(hwmon_dev, dev);
- ret = sysfs_create_group(&hwmon_dev->kobj,
- &hwmon_attrgroup);
+ ret = sysfs_create_group(&dev->pdev->dev.kobj, &hwmon_attrgroup);
if (ret) {
NV_ERROR(dev,
"Unable to create hwmon sysfs file: %d\n", ret);
OpenPOWER on IntegriCloud