diff options
author | Dave Airlie <airlied@redhat.com> | 2019-02-04 05:56:52 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-02-04 05:57:34 +0100 |
commit | 148fb2e2e38769d99e3dfafdc03d06eeedcf7ad3 (patch) | |
tree | 8f2bba99e26341ba20534a69951a9e9792952806 /drivers/gpu/drm/mgag200 | |
parent | Merge tag 'drm-misc-next-2019-02-01' of git://anongit.freedesktop.org/drm/drm... (diff) | |
parent | drm/amdgpu: Show XGMI node and hive message per device only once (diff) | |
download | linux-148fb2e2e38769d99e3dfafdc03d06eeedcf7ad3.tar.xz linux-148fb2e2e38769d99e3dfafdc03d06eeedcf7ad3.zip |
Merge branch 'drm-next-5.1' of git://people.freedesktop.org/~agd5f/linux into drm-next
ttm:
- Replace ref/unref naming with get/put
amdgpu:
- Revert DC clang fix, causes a segfault with some compiler versions
- SR-IOV fix
- PCIE fix for vega20
- Misc DC fixes
Signed-off-by: Dave Airlie <airlied@redhat.com>
From: Alex Deucher <alexdeucher@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190201062345.7304-1-alexander.deucher@amd.com
Diffstat (limited to 'drivers/gpu/drm/mgag200')
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_main.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_main.c b/drivers/gpu/drm/mgag200/mgag200_main.c index 79d54103d470..163255099779 100644 --- a/drivers/gpu/drm/mgag200/mgag200_main.c +++ b/drivers/gpu/drm/mgag200/mgag200_main.c @@ -33,7 +33,7 @@ int mgag200_framebuffer_init(struct drm_device *dev, struct drm_gem_object *obj) { int ret; - + drm_helper_mode_fill_fb_struct(dev, &gfb->base, mode_cmd); gfb->obj = obj; ret = drm_framebuffer_init(dev, &gfb->base, &mga_fb_funcs); @@ -318,13 +318,9 @@ int mgag200_dumb_create(struct drm_file *file, static void mgag200_bo_unref(struct mgag200_bo **bo) { - struct ttm_buffer_object *tbo; - if ((*bo) == NULL) return; - - tbo = &((*bo)->bo); - ttm_bo_unref(&tbo); + ttm_bo_put(&((*bo)->bo)); *bo = NULL; } |