Skip to contentSkip to conversation

drm/nouveau/hwmon: fix compilation without CONFIG_HWMON

PATCH In review Ilia Mirkin 2 participants 2 messages Nov 27, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/nouveau/hwmon: fix compilation without CONFIG_HWMON

---
 drivers/gpu/drm/nouveau/nouveau_hwmon.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/nouveau/nouveau_hwmon.c +0 -1
index 38a4db5..4aff04f 100644
@@ -630,7 +630,6 @@ error:
 	hwmon->hwmon = NULL;
 	return ret;
 #else
-	hwmon->hwmon = NULL;
 	return 0;
 #endif
 }
Signature · 1 line
1.8.3.2
#1 lore raw

2013/11/27 Ilia Mirkin <[email protected]>:

Quoted 11 lines
---
 drivers/gpu/drm/nouveau/nouveau_hwmon.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/nouveau/nouveau_hwmon.c +0 -0
index 38a4db5..4aff04f 100644

drivers/gpu/drm/nouveau/nouveau_hwmon.c error: · line 635

Quoted 7 lines
drivers/gpu/drm/nouveau/nouveau_hwmon.c +0 -1
@@ -630,7 +630,6 @@ error:
        hwmon->hwmon = NULL;
        return ret;
 #else
-       hwmon->hwmon = NULL;
        return 0;
 #endif
 }

I reran a configuration that had failed with that error with today's linux-next, and with the change it worked just fine. Tested-by:
[email protected]

Jim