fix hwmon device binding
Subsystems (3)
PATCH 1/1 fix hwmon device binding
The following patch fixes the creation directory of the hwmon files, to get our directory hierarchy in line with all other hwmon drivers.
--lynxeye
From b29a9259cbc6f88f83d7162e88f89f9345c1be3d Mon Sep 17 00:00:00 2001
From: Lucas Stach <[email protected]>
Date: Thu, 6 Jan 2011 20:29:53 +0100
Subject: [PATCH 2/2] 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.
--- drivers/gpu/drm/nouveau/nouveau_pm.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/nouveau/nouveau_pm.c +1 -1
@@ -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,
Signature · 1 line
1.7.3.4
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau
Quoted 2 lines · Lucas Stach
The following patch fixes the creation directory of the hwmon files, to get our directory hierarchy in line with all other hwmon drivers.
Thanks, pushed.
Ben.
Quoted 6 lines
--lynxeye
_______________________________________________
Nouveau mailing list [email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau