Huang Rui 7584498c1c drm/amd/powerplay: fix missed hwmgr check warning before call gfx_off_control handler
Patch 9667849bbb8d: "drm/amd/powerplay: add control gfxoff enabling in late
init" from Mar 13, 2018, leads to the following static checker warning:

	drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c:194
pp_late_init()
	error: we previously assumed 'hwmgr' could be null (see line 185)

drivers/gpu/drm/amd/amdgpu/../powerplay/amd_powerplay.c

This patch fixes the warning to add hwmgr checking.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2018-06-13 13:45:21 -05:00
..
2018-01-30 18:05:25 +01:00
2018-04-25 09:09:22 +02:00
2018-03-28 14:30:41 +10:00
2018-05-16 07:10:13 +10:00
2018-03-28 14:30:41 +10:00
2018-03-28 14:30:41 +10:00
2018-05-04 00:13:41 +02:00
2017-12-27 19:00:09 -05:00
2018-05-17 15:03:40 +10:00
2017-11-15 20:42:10 -08:00
2018-04-30 09:32:43 +10:00
2018-05-22 10:45:43 +10:00
2018-04-25 09:09:22 +02:00
2018-05-18 14:08:53 +10:00
2018-04-30 09:32:43 +10:00
2018-05-15 19:25:07 +10:00
2018-05-08 14:10:01 +03:00
2018-03-29 19:14:21 +03:00
2018-05-03 21:26:32 +02:00
2018-03-28 14:30:41 +10:00
2017-12-19 21:37:24 +10:00
2018-03-28 14:30:41 +10:00
2018-05-03 21:26:32 +02:00
2017-11-15 20:42:10 -08:00
2018-05-04 11:36:45 +02:00