drm/amdgpu: make sure ddc_bus is valid in connector unregister
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 31 Oct 2016 16:27:52 +0000 (12:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 31 Oct 2016 16:27:52 +0000 (12:27 -0400)
commiteef2b41122425dbddd16d70371bd000f601161d6
tree69786f221d9aa46aaad376280829500563698cb8
parent0a6e21056eaa859353945c4b164f3ef574d84271
drm/amdgpu: make sure ddc_bus is valid in connector unregister

This should only happen on boards TV connectors which do not
have a ddc bus for those connectors.  None of the asics supported
by amdgpu support tv, so we shouldn't hit this, but check
to be on the safe side (e.g., bios bug for example).

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c