drm/amdgpu: Fix lockdep warning more gracely
authorxinhui pan <xinhui.pan@amd.com>
Mon, 11 Mar 2019 11:34:23 +0000 (19:34 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:52 +0000 (15:36 -0500)
commit163def43e9a10ff834859e3b0bf04bcc71b90888
treed5b7527528fbd0b510a2de5daafbb91fdc77774e
parentb076296b0fb39f142bdc183d4bab91e7204c53bb
drm/amdgpu: Fix lockdep warning more gracely

lockdep need a static key.
Previously we set ignore bit to avoid the warning.
Now call sysfs_attr_init to initialize the static key.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-and-Tested-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c