Skip to contentSkip to conversation

drm/radeon: fix error return code in TN thermal setup

PATCH In review [email protected] 1 participant 2 messages Apr 3, 2012 – Apr 4, 2012

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

PATCH 1/1 drm/radeon: fix error return code in TN thermal setup

From: Alex Deucher <[email protected]>

---
 drivers/gpu/drm/radeon/radeon_pm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/radeon_pm.c +1 -1
index caa55d6..17571da 100644
@@ -520,7 +520,7 @@ static int radeon_hwmon_init(struct radeon_device *rdev)
 	case THERMAL_TYPE_SI:
 		/* No support for TN yet */
 		if (rdev->family == CHIP_ARUBA)
-			return err;
+			return -ENOSYS;
 		rdev->pm.int_hwmon_dev = hwmon_device_register(rdev->dev);
 		if (IS_ERR(rdev->pm.int_hwmon_dev)) {
 			err = PTR_ERR(rdev->pm.int_hwmon_dev);
Signature · 1 line
1.7.7.5
#1 lore raw
Quoted 3 lines · On Tue, Apr 3, 2012 at 11:12 AM, <[email protected]> wrote:

From: Alex Deucher <[email protected]>

Ignore this one. Sorry.

Alex

Quoted 20 lines

---
 drivers/gpu/drm/radeon/radeon_pm.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/radeon_pm.c +0 -0
index caa55d6..17571da 100644
@@ -520,7 +520,7 @@ static int radeon_hwmon_init(struct radeon_device *rdev)

       case THERMAL_TYPE_SI:
               /* No support for TN yet */
               if (rdev->family == CHIP_ARUBA)
-                       return err;
+                       return -ENOSYS; rdev->pm.int_hwmon_dev = hwmon_device_register(rdev->dev); if (IS_ERR(rdev->pm.int_hwmon_dev)) {
                       err = PTR_ERR(rdev->pm.int_hwmon_dev); --
1.7.7.5