[PATCH 2/2] drm/nouveau: fix hwmon device binding

Lucas Stach dev at lynxeye.de
Thu Jan 6 11:29:53 PST 2011


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 at lynxeye.de>
---
 drivers/gpu/drm/nouveau/nouveau_pm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_pm.c b/drivers/gpu/drm/nouveau/nouveau_pm.c
index d938141..1b24caa 100644
--- a/drivers/gpu/drm/nouveau/nouveau_pm.c
+++ b/drivers/gpu/drm/nouveau/nouveau_pm.c
@@ -422,7 +422,7 @@ nouveau_hwmon_init(struct drm_device *dev)
 		return ret;
 	}
 	dev_set_drvdata(hwmon_dev, dev);
-	ret = sysfs_create_group(&hwmon_dev->kobj,
+	ret = sysfs_create_group(&dev->pdev->dev.kobj,
 					&hwmon_attrgroup);
 	if (ret) {
 		NV_ERROR(dev,
-- 
1.7.3.4


--=-P/8vVJBcHvKZfQ+lariw--



More information about the Nouveau mailing list