diff options
author | Christian König <christian.koenig@amd.com> | 2018-09-17 09:41:45 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-09-26 22:09:21 -0400 |
commit | f54b30d70bc606f7a154edba5883c7fa23838e9f (patch) | |
tree | 23cb75c552eae7e36939f580296d43ca1f1ada66 /drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |
parent | 0dd1e5bbecd75b6977d47be39f85af1bda524006 (diff) |
drm/amdgpu: make function pointers mandatory
We always want those to be setup correctly.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/dce_virtual.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c index 15257634a53a..2cc480d65394 100644 --- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c +++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c | |||
@@ -649,8 +649,7 @@ static const struct amdgpu_display_funcs dce_virtual_display_funcs = { | |||
649 | 649 | ||
650 | static void dce_virtual_set_display_funcs(struct amdgpu_device *adev) | 650 | static void dce_virtual_set_display_funcs(struct amdgpu_device *adev) |
651 | { | 651 | { |
652 | if (adev->mode_info.funcs == NULL) | 652 | adev->mode_info.funcs = &dce_virtual_display_funcs; |
653 | adev->mode_info.funcs = &dce_virtual_display_funcs; | ||
654 | } | 653 | } |
655 | 654 | ||
656 | static int dce_virtual_pageflip(struct amdgpu_device *adev, | 655 | static int dce_virtual_pageflip(struct amdgpu_device *adev, |