From: Alex Deucher Date: Mon, 14 Dec 2015 15:46:52 +0000 (-0500) Subject: drm/amd/powerplay: Don't return an error if fan table is missing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=283b1a8bfba47921df927bd71b9db40045f4de15;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_processpptables.c index 2f09bb342e29..ae216fe8547d 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) +