blob: 6d6eff1ae54460a44ebe3eecdcf526fae925991b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
From 3abb5925b1d48742e4afbb1f27963bfc3fb35432 Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexander.deucher@amd.com>
Date: Mon, 14 Dec 2015 10:46:52 -0500
Subject: [PATCH 0968/1050] drm/amd/powerplay: Don't return an error if fan
table is missing
It's a valid configuration on some laptops.
Reviewed-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c
index 2f09bb3..ae216fe 100644
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c
@@ -797,7 +797,7 @@ static int init_thermal_controller(
);
if (0 == powerplay_table->usFanTableOffset)
- return -1;
+ return 0;
fan_table = (const PPTable_Generic_SubTable_Header *)
(((unsigned long)powerplay_table) +
--
1.9.1
|