* [PATCH] fix hwmon device binding
@ 2011-01-06 19:54 Lucas Stach
2011-01-07 4:40 ` Ben Skeggs
0 siblings, 1 reply; 2+ messages in thread
From: Lucas Stach @ 2011-01-06 19:54 UTC (permalink / raw)
To: Nouveau Dev List
[-- Attachment #1: Type: text/plain, Size: 149 bytes --]
The following patch fixes the creation directory of the hwmon files, to
get our directory hierarchy in line with all other hwmon drivers.
--lynxeye
[-- Attachment #2: 0002-drm-nouveau-fix-hwmon-device-binding.patch --]
[-- Type: text/x-patch, Size: 1043 bytes --]
From b29a9259cbc6f88f83d7162e88f89f9345c1be3d Mon Sep 17 00:00:00 2001
From: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
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.
Signed-off-by: Lucas Stach <dev-8ppwABl0HbeELgA04lAiVw@public.gmane.org>
---
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
[-- Attachment #3: Type: text/plain, Size: 181 bytes --]
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix hwmon device binding
2011-01-06 19:54 [PATCH] fix hwmon device binding Lucas Stach
@ 2011-01-07 4:40 ` Ben Skeggs
0 siblings, 0 replies; 2+ messages in thread
From: Ben Skeggs @ 2011-01-07 4:40 UTC (permalink / raw)
To: Lucas Stach; +Cc: Nouveau Dev List
On Thu, 2011-01-06 at 20:54 +0100, Lucas Stach wrote:
> 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.
>
> --lynxeye
> _______________________________________________
> Nouveau mailing list
> Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
> http://lists.freedesktop.org/mailman/listinfo/nouveau
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-07 4:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06 19:54 [PATCH] fix hwmon device binding Lucas Stach
2011-01-07 4:40 ` Ben Skeggs
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.