]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Dynamically initialize IP instance attributes
authorLuben Tuikov <luben.tuikov@amd.com>
Thu, 17 Feb 2022 16:12:55 +0000 (11:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 17 Feb 2022 20:59:05 +0000 (15:59 -0500)
commite6f7e8056a40317d791222959d3e58784abee062
treefdf769125de2116c984e3bae0d966ccc647e1058
parent3567aaa199116cecac6a78bffcbe0f6a2e31828e
drm/amdgpu: Dynamically initialize IP instance attributes

Dynamically initialize IP instance attributes. This eliminates bugs
stemming from adding new attributes to an IP instance.

Cc: Alex Deucher <Alexander.Deucher@amd.com>
Reported-by: Tom StDenis <tom.stdenis@amd.com>
Fixes: d1331524d142 ("drm/amdgpu: Add "harvest" to IP discovery sysfs")
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Alex Deucher <Alexander.Deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c