drm/amd/pm: fix smu_v11_0_init_power power_context allocation
authorRyan Taylor <Ryan.Taylor@amd.com>
Tue, 10 Nov 2020 22:20:08 +0000 (14:20 -0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Nov 2020 19:36:04 +0000 (14:36 -0500)
commiteb45604e29481ce20e737ec20fdd41a40b222742
tree81d8f3f7bca6bced2fc8bbecd085ef73e8f70553
parent8976f73b676eb96d27ac1f7034fb36dd22292e21
drm/amd/pm: fix smu_v11_0_init_power power_context allocation

Allocate smu_power->power_context to size of smu_11_0_power_context instead of
smu_11_0_dpm_context.

Signed-off-by: Ryan Taylor <Ryan.Taylor@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c