drm/amd/display: Release fake sink
authorMikita Lipski <mikita.lipski@amd.com>
Tue, 1 May 2018 15:33:25 +0000 (11:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 May 2018 18:22:03 +0000 (13:22 -0500)
commitaed15309b9b2009da9dfd209deaf9af8660f50a1
tree81356b47eaf1f604b7a3853515af0ea1b88205f9
parent2b6199a1d1b70fccd62aed961ba4c2b979ae499c
drm/amd/display: Release fake sink

If connector doesn't have a sink, fake sink is created, but
never released as it assumed that its destroyed with the
stream it is used for. But now sink is released before the
stream maintaing refcount consistency.

This way we also avoid assigning anything to connector keeping
all the operation local.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c