diff options
author | Dave Airlie <airlied@redhat.com> | 2017-01-27 10:17:43 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-01-27 10:17:43 +1000 |
commit | 1fb2d35411364a329557e4c02fbb42a6adbfa567 (patch) | |
tree | 6faee35a49368d0b8d739f77ca775769ae97929e /drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |
parent | 99f300cf1f3877ad8ea923127de817a460b787bd (diff) | |
parent | b9b487e494712c8e5905b724e12f5ef17e9ae6f9 (diff) | |
download | linux-stericsson-1fb2d35411364a329557e4c02fbb42a6adbfa567.tar.gz |
Merge branch 'drm-fixes-4.10' of git://people.freedesktop.org/~agd5f/linux into drm-fixes
Just a few small fixes.
* 'drm-fixes-4.10' of git://people.freedesktop.org/~agd5f/linux:
Revert "drm/radeon: always apply pci shutdown callbacks"
drm/amdgpu: fix unload driver issue for virtual display
drm/amdgpu: check ring being ready before using
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_virtual.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 762f8e82ceb7..e9a176891e13 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c @@ -627,11 +627,8 @@ static const struct drm_encoder_helper_funcs dce_virtual_encoder_helper_funcs = static void dce_virtual_encoder_destroy(struct drm_encoder *encoder) { - struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); - - kfree(amdgpu_encoder->enc_priv); drm_encoder_cleanup(encoder); - kfree(amdgpu_encoder); + kfree(encoder); } static const struct drm_encoder_funcs dce_virtual_encoder_funcs = { |