drm/amd/powerplay: Don't return an error if fan table is missing
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Dec 2015 15:46:52 +0000 (10:46 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Dec 2015 21:42:56 +0000 (16:42 -0500)
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

index 2f09bb342e291998cce8c4681e00c533633dffde..ae216fe8547d6427339ffbdaba6203f27dc4af8b 100644 (file)
@@ -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) +