diff options
author | Karol Herbst <nouveau@karolherbst.de> | 2016-03-28 14:24:30 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2016-05-20 14:43:04 +1000 |
commit | 92224e751f97847195b8e90a033b3e7b30ff0bd3 (patch) | |
tree | 126020ccd9653be9f63e398886a5199334371c50 /drivers/gpu/drm/nouveau/nouveau_hwmon.c | |
parent | d03e0f2748a7da3911fd54af16eb07f325ce830f (diff) | |
download | linux-92224e751f97847195b8e90a033b3e7b30ff0bd3.tar.gz linux-92224e751f97847195b8e90a033b3e7b30ff0bd3.tar.bz2 linux-92224e751f97847195b8e90a033b3e7b30ff0bd3.zip |
drm/nouveau/iccsense: convert to linked list
v2: add list_del calls
Signed-off-by: Karol Herbst <nouveau@karolherbst.de>
Reviewed-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_hwmon.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_hwmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_hwmon.c b/drivers/gpu/drm/nouveau/nouveau_hwmon.c index 7ecb5d910d1c..1ff4166af26e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_hwmon.c +++ b/drivers/gpu/drm/nouveau/nouveau_hwmon.c @@ -689,7 +689,7 @@ nouveau_hwmon_init(struct drm_device *dev) goto error; } - if (iccsense && iccsense->data_valid && iccsense->rail_count) { + if (iccsense && iccsense->data_valid && !list_empty(&iccsense->rails)) { ret = sysfs_create_group(&hwmon_dev->kobj, &hwmon_power_attrgroup); if (ret) |