OSDN Git Service

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)
commit6b5033831febbe1c009b6713338cc9e417b45ceb
treefdf769125de2116c984e3bae0d966ccc647e1058
parent8f74f68d907d2a41be211e61aaa7c9268f5532e1
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: 4d7ba312dd1f ("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