Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/pm: use attr_update if the attr has it

use attr_update if its available as part of the attribute.
default_attr_update was used even if attr->attr_update is true.

Signed-off-by: Sathishkumar S <sathishkumar.sundararaju@amd.com>
Reviewed-by: Shashank Sharma <Shashank.sharma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Sathishkumar S and committed by
Alex Deucher
8a81028b 3c609c8b

+1 -1
+1 -1
drivers/gpu/drm/amd/pm/amdgpu_pm.c
··· 1942 1942 1943 1943 BUG_ON(!attr); 1944 1944 1945 - attr_update = attr->attr_update ? attr_update : default_attr_update; 1945 + attr_update = attr->attr_update ? attr->attr_update : default_attr_update; 1946 1946 1947 1947 ret = attr_update(adev, attr, mask, &attr_states); 1948 1948 if (ret) {